Skip to content

Commit d93f537

Browse files
committed
Clean up lints for Rust 1.31
1 parent 3f481f4 commit d93f537

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)