Allow upper_case_acronyms

This commit is contained in:
Martin Algesten
2021-03-25 21:24:05 +01:00
parent a6085d8237
commit 4ade506047
2 changed files with 9 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ jobs:
lint: lint:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Rust - name: Install Rust
@@ -15,10 +17,13 @@ jobs:
override: true override: true
- name: Run Rustfmt - name: Run Rustfmt
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
run: cargo fmt -- --check with:
command: fmt
args: -- --check
- name: Run Clippy - name: Run Clippy
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
run: RUSTFLAGS="-D warnings" cargo clippy with:
command: clippy
doc: doc:
name: Docs name: Docs
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -4,6 +4,8 @@
#![allow(clippy::new_without_default)] #![allow(clippy::new_without_default)]
// the matches! macro is obscure and not widely known. // the matches! macro is obscure and not widely known.
#![allow(clippy::match_like_matches_macro)] #![allow(clippy::match_like_matches_macro)]
// we're not changing public api due to a lint.
#![allow(clippy::upper_case_acronyms)]
//! A simple, safe HTTP client. //! A simple, safe HTTP client.
//! //!