Commit 6e8c724 1 parent caf585c commit 6e8c724 Copy full SHA for 6e8c724
File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,9 @@ fn impl_struct(input: Struct) -> TokenStream {
170
170
let source_var = Ident :: new ( "source" , span) ;
171
171
let body = from_initializer ( from_field, backtrace_field, & source_var) ;
172
172
quote_spanned ! { span=>
173
- #[ allow( unused_qualifications, clippy:: needless_lifetimes) ]
173
+ #[ allow( deprecated , unused_qualifications, clippy:: needless_lifetimes) ]
174
174
#[ automatically_derived]
175
175
impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
176
- #[ allow( deprecated) ]
177
176
fn from( #source_var: #from) -> Self {
178
177
#ty #body
179
178
}
@@ -435,10 +434,9 @@ fn impl_enum(input: Enum) -> TokenStream {
435
434
let source_var = Ident :: new ( "source" , span) ;
436
435
let body = from_initializer ( from_field, backtrace_field, & source_var) ;
437
436
Some ( quote_spanned ! { span=>
438
- #[ allow( unused_qualifications, clippy:: needless_lifetimes) ]
437
+ #[ allow( deprecated , unused_qualifications, clippy:: needless_lifetimes) ]
439
438
#[ automatically_derived]
440
439
impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
441
- #[ allow( deprecated) ]
442
440
fn from( #source_var: #from) -> Self {
443
441
#ty:: #variant #body
444
442
}
You can’t perform that action at this time.
0 commit comments