From 2c7758e4bdb148d1b491f7fc15fa881efdaa1431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dj8yf0=CE=BCl?= Date: Wed, 29 May 2024 22:04:08 +0300 Subject: [PATCH] clippy: remove unneeded `let_and_return` --- borsh-derive/src/internals/schema/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/borsh-derive/src/internals/schema/mod.rs b/borsh-derive/src/internals/schema/mod.rs index 6f8e70140..b094a4452 100644 --- a/borsh-derive/src/internals/schema/mod.rs +++ b/borsh-derive/src/internals/schema/mod.rs @@ -59,7 +59,6 @@ fn declaration(ident_str: &str, cratename: Path, params_for_bounds: Vec) - } } -#[allow(clippy::let_and_return)] fn filter_used_params(generics: &Generics, not_skipped_type_params: HashSet) -> Generics { let new_params = generics .params @@ -81,7 +80,7 @@ fn filter_used_params(generics: &Generics, not_skipped_type_params: HashSet true, WherePredicate::Type(predicate_type) => generics::type_contains_some_param( &predicate_type.bounded_ty, @@ -89,8 +88,7 @@ fn filter_used_params(generics: &Generics, not_skipped_type_params: HashSet true, - }; - result + } }) .cloned() .collect();