diff --git a/.github/workflows/clippy-fmt.yml b/.github/workflows/clippy-fmt.yml index e43f87c64..86d6269ec 100644 --- a/.github/workflows/clippy-fmt.yml +++ b/.github/workflows/clippy-fmt.yml @@ -15,6 +15,6 @@ jobs: components: clippy, rustfmt - uses: Swatinem/rust-cache@v2 - name: clippy - run: cargo clippy --workspace --all-targets --all-features -- -D warnings + run: cargo clippy --workspace --all-targets --all-features -- -D warnings -A clippy::literal_string_with_formatting_args - name: fmt run: cargo fmt --all --check \ No newline at end of file diff --git a/http/src/h2/proto/hpack/encoder.rs b/http/src/h2/proto/hpack/encoder.rs index d5aaab79a..37832779e 100644 --- a/http/src/h2/proto/hpack/encoder.rs +++ b/http/src/h2/proto/hpack/encoder.rs @@ -323,7 +323,7 @@ mod test { let res = encode(&mut encoder, vec![method("PATCH")]); - assert_eq!(1 << 7 | 62, res[0]); + assert_eq!((1 << 7) | 62, res[0]); assert_eq!(1, res.len()); } diff --git a/http/src/tls/openssl.rs b/http/src/tls/openssl.rs index 6e05f97d5..1822254f4 100644 --- a/http/src/tls/openssl.rs +++ b/http/src/tls/openssl.rs @@ -57,7 +57,7 @@ impl TlsAcceptorService { async fn accept(&self, io: Io) -> Result, OpensslError> { let ctx = self.acceptor.context(); let ssl = ssl::Ssl::new(ctx)?; - TlsStream::accept(ssl, io).await.map_err(Into::into) + TlsStream::accept(ssl, io).await } }