diff --git a/src/lib.rs b/src/lib.rs index 8d6ddde..7d81837 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,6 +38,7 @@ html_favicon_url = "https://avatars.githubusercontent.com/u/91469139?s=256" )] #![forbid(non_ascii_idents, unsafe_code)] +#![warn(clippy::allow_attributes, clippy::allow_attributes_without_reason)] #![cfg_attr(docsrs, feature(doc_cfg))] #[cfg(feature = "parser")] diff --git a/src/parser.rs b/src/parser.rs index b99ebdd..20c01d8 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -530,7 +530,6 @@ pub(crate) rule feature() -> Feature r:rules() pb:position!() nl()* {? - #[allow(clippy::question_mark)] if let Err(e) = env.assert_no_error() { Err(e) } else {