Skip to content

Commit

Permalink
Allow a false-positive clippy lint
Browse files Browse the repository at this point in the history
rust-lang/rust-clippy#2475 , we'll revert this commit when that's
fixed.
  • Loading branch information
quodlibetor committed Mar 4, 2018
1 parent 2ee549f commit 7f99014
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7f99014

Please sign in to comment.