diff --git a/Cargo.toml b/Cargo.toml index 5a02a7215b..01fff25297 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -139,9 +139,11 @@ panic = "allow" pattern_type_mismatch = "allow" redundant_closure_for_method_calls = "allow" redundant_else = "allow" +rest_pattern_accessible_field = "allow" # TODO: consider, might catch bugs single_char_lifetime_names = "allow" struct_excessive_bools = "allow" # TODO: bogus lint? trivially_copy_pass_by_ref = "allow" +unnecessary_rest_pattern = "allow" # TODO: simple fix unnecessary_trailing_comma = "allow" unnested_or_patterns = "allow" unused_async = "allow" # TODO: is it for API? @@ -158,6 +160,7 @@ clone_on_ref_ptr = "allow" # Arc::clone(blah) is needlessly noisy cognitive_complexity = "allow" # is this ever useful? decimal_literal_representation = "allow" # arguably more human-readable default_numeric_fallback = "allow" # too many false positives +definition_in_module_root = "allow" # this is normal expect_used = "allow" # expect is self-documenting error_impl_error = "allow" # mod::Error is a fine name field_scoped_visibility_modifiers = "allow" # possibly good idea, noisy for now diff --git a/src/body/incoming.rs b/src/body/incoming.rs index 93c99a01a6..6ef6c0963a 100644 --- a/src/body/incoming.rs +++ b/src/body/incoming.rs @@ -390,6 +390,7 @@ impl Sender { /// Send trailers on trailers channel. #[allow(unused)] + #[allow(clippy::unused_async_trait_impl)] pub(crate) async fn send_trailers(&mut self, trailers: HeaderMap) -> crate::Result<()> { let tx = match self.trailers_tx.take() { Some(tx) => tx, diff --git a/src/client/conn/http1.rs b/src/client/conn/http1.rs index 7468507623..bdb03171d4 100644 --- a/src/client/conn/http1.rs +++ b/src/client/conn/http1.rs @@ -255,6 +255,7 @@ where /// /// If there was an error before trying to serialize the request to the /// connection, the message will be returned as part of this error. + #[allow(clippy::result_large_err)] pub fn try_send_request( &mut self, req: Request, diff --git a/src/client/conn/http2.rs b/src/client/conn/http2.rs index d1dfcfd416..10613b354a 100644 --- a/src/client/conn/http2.rs +++ b/src/client/conn/http2.rs @@ -189,6 +189,7 @@ where /// /// If there was an error before trying to serialize the request to the /// connection, the message will be returned as part of this error. + #[allow(clippy::result_large_err)] pub fn try_send_request( &mut self, req: Request,