There was an error while loading. Please reload this page.
2 parents 2901cfd + 2266152 commit c4c3ebdCopy full SHA for c4c3ebd
1 file changed
impl/src/expand.rs
@@ -171,6 +171,7 @@ fn impl_struct(input: Struct) -> TokenStream {
171
let source_var = Ident::new("source", span);
172
let body = from_initializer(from_field, backtrace_field, &source_var);
173
let from_function = quote! {
174
+ #[allow(clippy::redundant_field_names)]
175
fn from(#source_var: #from) -> Self {
176
#ty #body
177
}
@@ -453,6 +454,7 @@ fn impl_enum(input: Enum) -> TokenStream {
453
454
455
456
457
458
459
#ty::#variant #body
460
0 commit comments