Skip to content

Commit

Permalink
enabled clippy in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Rodler <mrodler@amazon.de>
  • Loading branch information
Michael Rodler committed Jun 12, 2023
1 parent ec8eefa commit d438eae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion http-body/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]

Expand Down Expand Up @@ -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>,
Expand Down

0 comments on commit d438eae

Please sign in to comment.