From 7f990144ccb81c93354c8112f566d4c065c6b49e Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Sun, 4 Mar 2018 09:51:41 -0500 Subject: [PATCH] Allow a false-positive clippy lint rust-lang-nursery/rust-clippy#2475 , we'll revert this commit when that's fixed. --- src/format/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/format/mod.rs b/src/format/mod.rs index fc1e902..de13d2c 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -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.