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>(
7878 Span :: call_site ( ) ,
7979 ) ;
8080 quote ! {
81- #[ allow( non_upper_case_globals, unused_attributes , unused_qualifications) ]
81+ #[ allow( non_upper_case_globals, unused_qualifications) ]
8282 const #dummy_const: ( ) = {
83- #[ allow( unknown_lints) ]
84- #[ cfg_attr( feature = "cargo-clippy" , allow( useless_attribute) ) ]
83+ #[ allow( clippy:: useless_attribute) ]
8584 #[ allow( rust_2018_idioms) ]
8685 extern crate num_traits as _num_traits;
8786 #exp
@@ -432,9 +431,7 @@ pub fn to_primitive(input: TokenStream) -> TokenStream {
432431 dummy_const_trick ( "ToPrimitive" , & name, impl_) . into ( )
433432}
434433
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" ;
438435
439436/// Derives [`num_traits::NumOps`][num_ops] for newtypes. The inner type must already implement
440437/// `NumOps`.
You can’t perform that action at this time.
0 commit comments