diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 51bdc37..15268b0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -31,3 +31,10 @@ jobs: run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} - name: Run tests run: cargo test --workspace + + clippy_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run Clippy + run: cargo clippy --all-targets --all-features diff --git a/http-body/src/lib.rs b/http-body/src/lib.rs index 877d1c2..81acdaa 100644 --- a/http-body/src/lib.rs +++ b/http-body/src/lib.rs @@ -2,7 +2,9 @@ missing_debug_implementations, missing_docs, unreachable_pub, - rustdoc::broken_intra_doc_links + rustdoc::broken_intra_doc_links, + clippy::missing_safety_doc, + clippy::undocumented_unsafe_blocks )] #![cfg_attr(test, deny(warnings))] @@ -41,6 +43,7 @@ pub trait Body { /// The error type this `Body` might generate. type Error; + #[allow(clippy::type_complexity)] /// Attempt to pull out the next data buffer of this stream. fn poll_frame( self: Pin<&mut Self>,