From ff71b49f014613729237178f0d3ea374f7d72cd5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 19 Jul 2022 12:28:34 +0200 Subject: refactor: use aggressive clippy linting --- syrette_macros/src/injectable_impl.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'syrette_macros/src/injectable_impl.rs') diff --git a/syrette_macros/src/injectable_impl.rs b/syrette_macros/src/injectable_impl.rs index e7d1b54..3000253 100644 --- a/syrette_macros/src/injectable_impl.rs +++ b/syrette_macros/src/injectable_impl.rs @@ -131,6 +131,7 @@ impl InjectableImpl .find(|method_item| method_item.sig.ident == method_name) } + #[allow(clippy::match_wildcard_for_single_variants)] fn get_has_fn_args_self(fn_args: &Punctuated) -> bool { fn_args.iter().any(|arg| match arg { @@ -170,7 +171,7 @@ impl InjectableImpl match opt_colon_two { Some(colon_two) => { - acc.push_str(colon_two.to_token_stream().to_string().as_str()) + acc.push_str(colon_two.to_token_stream().to_string().as_str()); } None => {} } -- cgit v1.2.3-18-g5258