Skip to content

Commit

Permalink
Don't warn on an unknown allowed clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
quodlibetor committed Jul 28, 2018
1 parent ffb27b8 commit 5481dec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@
#![cfg_attr(bench, feature(test))] // lib stability features as per RFC #507
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![allow(trivially_copy_pass_by_ref)]

// The explicit 'static lifetimes are still needed for rustc 1.13-16
// backward compatibility, and this appeases clippy. If minimum rustc
Expand All @@ -401,7 +400,14 @@
//
// Similarly, redundant_field_names lints on not using the
// field-init-shorthand, which was stabilized in rust 1.17.
#![cfg_attr(feature = "cargo-clippy", allow(const_static_lifetime, redundant_field_names))]
//
// Changing trivially_copy_pass_by_ref would require an incompatible version
// bump.
#![cfg_attr(feature = "cargo-clippy", allow(
const_static_lifetime,
redundant_field_names,
trivially_copy_pass_by_ref,
))]

#[cfg(feature="clock")]
extern crate time as oldtime;
Expand Down

0 comments on commit 5481dec

Please sign in to comment.