Allow a false-positive clippy lint

rust-lang-nursery/rust-clippy#2475 , we'll revert this commit when that's
fixed.
This commit is contained in:
Brandon W Maister 2018-03-04 09:51:41 -05:00
parent 2ee549f84f
commit 7f990144cc
1 changed files with 2 additions and 0 deletions

View File

@ -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.