File tree Expand file tree Collapse file tree 5 files changed +19
-7
lines changed
Expand file tree Collapse file tree 5 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,12 @@ fn impl_struct(input: Struct) -> TokenStream {
181181 }
182182 } ;
183183 Some ( quote ! {
184- #[ allow( deprecated, unused_qualifications, clippy:: needless_lifetimes) ]
184+ #[ allow(
185+ deprecated,
186+ unused_qualifications,
187+ clippy:: elidable_lifetime_names,
188+ clippy:: needless_lifetimes,
189+ ) ]
185190 #from_impl
186191 } )
187192 } ) ;
@@ -451,7 +456,12 @@ fn impl_enum(input: Enum) -> TokenStream {
451456 }
452457 } ;
453458 Some ( quote ! {
454- #[ allow( deprecated, unused_qualifications, clippy:: needless_lifetimes) ]
459+ #[ allow(
460+ deprecated,
461+ unused_qualifications,
462+ clippy:: elidable_lifetime_names,
463+ clippy:: needless_lifetimes,
464+ ) ]
455465 #from_impl
456466 } )
457467 } ) ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ impl<'a> AsDynError<'a> for dyn Error + Send + Sync + UnwindSafe + 'a {
4444#[ doc( hidden) ]
4545pub trait Sealed { }
4646impl < T : Error > Sealed for T { }
47- impl < ' a > Sealed for dyn Error + ' a { }
48- impl < ' a > Sealed for dyn Error + Send + ' a { }
49- impl < ' a > Sealed for dyn Error + Send + Sync + ' a { }
50- impl < ' a > Sealed for dyn Error + Send + Sync + UnwindSafe + ' a { }
47+ impl Sealed for dyn Error + ' _ { }
48+ impl Sealed for dyn Error + Send + ' _ { }
49+ impl Sealed for dyn Error + Send + Sync + ' _ { }
50+ impl Sealed for dyn Error + Send + Sync + UnwindSafe + ' _ { }
Original file line number Diff line number Diff line change 259259#![ no_std]
260260#![ doc( html_root_url = "https://docs.rs/thiserror/2.0.11" ) ]
261261#![ allow(
262+ clippy:: elidable_lifetime_names,
262263 clippy:: module_name_repetitions,
263264 clippy:: needless_lifetimes,
264265 clippy:: return_self_not_must_use,
Original file line number Diff line number Diff line change 11#![ allow(
2+ clippy:: elidable_lifetime_names,
23 clippy:: needless_lifetimes,
34 clippy:: needless_raw_string_hashes,
45 clippy:: trivially_copy_pass_by_ref,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ fn test_unused_qualifications() {
3333#[ test]
3434fn test_needless_lifetimes ( ) {
3535 #![ allow( dead_code) ]
36- #![ deny( clippy:: needless_lifetimes) ]
36+ #![ deny( clippy:: elidable_lifetime_names , clippy :: needless_lifetimes) ]
3737
3838 #[ derive( Error , Debug ) ]
3939 #[ error( "..." ) ]
You can’t perform that action at this time.
0 commit comments