File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,9 @@ fn dummy_const_trick<T: quote::ToTokens>(
78
78
Span :: call_site ( ) ,
79
79
) ;
80
80
quote ! {
81
- #[ allow( non_upper_case_globals, unused_attributes , unused_qualifications) ]
81
+ #[ allow( non_upper_case_globals, unused_qualifications) ]
82
82
const #dummy_const: ( ) = {
83
- #[ allow( unknown_lints) ]
84
- #[ cfg_attr( feature = "cargo-clippy" , allow( useless_attribute) ) ]
83
+ #[ allow( clippy:: useless_attribute) ]
85
84
#[ allow( rust_2018_idioms) ]
86
85
extern crate num_traits as _num_traits;
87
86
#exp
@@ -432,9 +431,7 @@ pub fn to_primitive(input: TokenStream) -> TokenStream {
432
431
dummy_const_trick ( "ToPrimitive" , & name, impl_) . into ( )
433
432
}
434
433
435
- #[ allow( renamed_and_removed_lints) ]
436
- #[ cfg_attr( feature = "cargo-clippy" , allow( const_static_lifetime) ) ]
437
- const NEWTYPE_ONLY : & ' static str = "This trait can only be derived for newtypes" ;
434
+ const NEWTYPE_ONLY : & str = "This trait can only be derived for newtypes" ;
438
435
439
436
/// Derives [`num_traits::NumOps`][num_ops] for newtypes. The inner type must already implement
440
437
/// `NumOps`.
You can’t perform that action at this time.
0 commit comments