mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
apply new rustfmt.toml changes, fix some clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
+2
-10
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user