File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 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 {
170170 let source_var = Ident :: new ( "source" , span) ;
171171 let body = from_initializer ( from_field, backtrace_field, & source_var) ;
172172 quote_spanned ! { span=>
173- #[ allow( unused_qualifications, clippy:: needless_lifetimes) ]
173+ #[ allow( deprecated , unused_qualifications, clippy:: needless_lifetimes) ]
174174 #[ automatically_derived]
175175 impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
176- #[ allow( deprecated) ]
177176 fn from( #source_var: #from) -> Self {
178177 #ty #body
179178 }
@@ -435,10 +434,9 @@ fn impl_enum(input: Enum) -> TokenStream {
435434 let source_var = Ident :: new ( "source" , span) ;
436435 let body = from_initializer ( from_field, backtrace_field, & source_var) ;
437436 Some ( quote_spanned ! { span=>
438- #[ allow( unused_qualifications, clippy:: needless_lifetimes) ]
437+ #[ allow( deprecated , unused_qualifications, clippy:: needless_lifetimes) ]
439438 #[ automatically_derived]
440439 impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
441- #[ allow( deprecated) ]
442440 fn from( #source_var: #from) -> Self {
443441 #ty:: #variant #body
444442 }
You can’t perform that action at this time.
0 commit comments