Skip to content

Commit 7bdc239

Browse files
sbernauerTedDriggs
authored andcommitted
Fix clippy::needless_continue lint in code generated by FromDeriveInput
1 parent bdc3139 commit 7bdc239

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core/src/codegen/attrs_field.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub struct MatchArms<'a>(&'a ForwardAttrs<'a>);
7474
impl ToTokens for MatchArms<'_> {
7575
fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) {
7676
if !self.0.will_forward_any() {
77-
tokens.append_all(quote!(_ => continue));
77+
tokens.append_all(quote!(_ => {}));
7878
return;
7979
}
8080

@@ -91,7 +91,7 @@ impl ToTokens for MatchArms<'_> {
9191
let names = idents.to_strings();
9292
quote! {
9393
#(#names)|* => #push_command,
94-
_ => continue,
94+
_ => {},
9595
}
9696
}
9797
},

0 commit comments

Comments
 (0)