diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-19 12:28:34 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-19 12:28:34 +0200 |
commit | ff71b49f014613729237178f0d3ea374f7d72cd5 (patch) | |
tree | 4d0b320fae52f8318139364d4dcd6b424fea735a /syrette_macros/src/injectable_impl.rs | |
parent | 58e50e3d9073584064e13edf489fc008b0388149 (diff) |
refactor: use aggressive clippy linting
Diffstat (limited to 'syrette_macros/src/injectable_impl.rs')
-rw-r--r-- | syrette_macros/src/injectable_impl.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<FnArg, Comma>) -> 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 => {} } |