apply new rustfmt.toml changes, fix some clippy lints

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-12-15 00:05:47 -05:00
commit 77e0b76408
No known key found for this signature in database
296 changed files with 7147 additions and 4300 deletions

View file

@ -9,11 +9,7 @@ pub(super) fn refutable(mut item: ItemFn, _args: &[Meta]) -> Result<TokenStream>
let stmt = &mut item.block.stmts;
let sig = &mut item.sig;
for (i, input) in inputs.iter().enumerate() {
let Typed(PatType {
pat,
..
}) = input
else {
let Typed(PatType { pat, .. }) = input else {
continue;
};
@ -24,11 +20,7 @@ pub(super) fn refutable(mut item: ItemFn, _args: &[Meta]) -> Result<TokenStream>
let variant = &pat.path;
let fields = &pat.fields;
let Some(Typed(PatType {
ref mut pat,
..
})) = sig.inputs.get_mut(i)
else {
let Some(Typed(PatType { ref mut pat, .. })) = sig.inputs.get_mut(i) else {
continue;
};