diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e863ad0..7787818 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,8 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + env: + RUSTFLAGS: -D warnings steps: - uses: actions/checkout@v2 - name: Install Rust @@ -15,10 +17,13 @@ jobs: override: true - name: Run Rustfmt uses: actions-rs/cargo@v1 - run: cargo fmt -- --check + with: + command: fmt + args: -- --check - name: Run Clippy uses: actions-rs/cargo@v1 - run: RUSTFLAGS="-D warnings" cargo clippy + with: + command: clippy doc: name: Docs runs-on: ubuntu-latest diff --git a/src/lib.rs b/src/lib.rs index 850121f..f66f0c9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,8 @@ #![allow(clippy::new_without_default)] // the matches! macro is obscure and not widely known. #![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. //!