Skip to content

Commit

Permalink
Allow a clippy lint that depends on rust 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
quodlibetor committed Mar 4, 2018
1 parent ff962d4 commit 2ee549f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@
// backward compatibility, and this appeases clippy. If minimum rustc
// becomes 1.17, should be able to remove this, those 'static lifetimes,
// and use `static` in a lot of places `const` is used now.
#![cfg_attr(feature = "cargo-clippy", allow(const_static_lifetime))]
//
// 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))]

extern crate time as oldtime;
extern crate num;
Expand Down

0 comments on commit 2ee549f

Please sign in to comment.