Merge pull request #223 from quodlibetor/allow-clippy-lint
Allow a clippy lint that depends on rust 1.17
This commit is contained in:
commit
312d0898d9
|
@ -269,6 +269,8 @@ macro_rules! fix { ($x:ident) => (Item::Fixed(Fixed::$x)) }
|
|||
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
|
||||
pub struct ParseError(ParseErrorKind);
|
||||
|
||||
// clippy false positive https://github.com/rust-lang-nursery/rust-clippy/issues/2475
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(empty_line_after_outer_attr))]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
|
||||
enum ParseErrorKind {
|
||||
/// Given field is out of permitted range.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue