mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-11 05:33:02 +02:00
apply new rustfmt.toml changes, fix some clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
0317cc8cc5
commit
77e0b76408
296 changed files with 7147 additions and 4300 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue