From c726ebef83bcd584098ffb7ecbd80dd4d1a692ad Mon Sep 17 00:00:00 2001 From: Erik Zscheile Date: Sat, 18 Aug 2018 16:27:55 +0200 Subject: [PATCH] try (1) split 'allow' lints --- src/error_chain.rs | 6 ++++-- src/impl_error_chain_kind.rs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/error_chain.rs b/src/error_chain.rs index 7cf67e888..ab3b99574 100644 --- a/src/error_chain.rs +++ b/src/error_chain.rs @@ -179,7 +179,8 @@ macro_rules! impl_error_chain_processed { self.description() } - #[allow(unknown_lints, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)] + #[allow(unknown_lints, renamed_and_removed_lints)] + #[allow(unused_doc_comment, unused_doc_comments)] fn cause(&self) -> Option<&::std::error::Error> { match self.1.next_error { Some(ref c) => Some(&**c), @@ -421,7 +422,8 @@ macro_rules! impl_extract_backtrace { ($error_name: ident $error_kind_name: ident $([$link_error_path: path, $(#[$meta_links: meta])*])*) => { - #[allow(unknown_lints, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)] + #[allow(unknown_lints, renamed_and_removed_lints)] + #[allow(unused_doc_comment, unused_doc_comments)] fn extract_backtrace(e: &(::std::error::Error + Send + 'static)) -> Option<$crate::InternalBacktrace> { if let Some(e) = e.downcast_ref::<$error_name>() { diff --git a/src/impl_error_chain_kind.rs b/src/impl_error_chain_kind.rs index a8b19d6dd..f730049bc 100644 --- a/src/impl_error_chain_kind.rs +++ b/src/impl_error_chain_kind.rs @@ -224,7 +224,8 @@ macro_rules! impl_error_chain_kind { $item:ident: $imode:tt [$(#[$imeta:meta])*] [$( $var:ident: $typ:ty ),*] {$( $funcs:tt )*} )*} ) => { - #[allow(unknown_lints, unused, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)] + #[allow(unknown_lints, unused, renamed_and_removed_lints)] + #[allow(unused_doc_comment, unused_doc_comments)] impl ::std::fmt::Display for $name { fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result @@ -247,7 +248,8 @@ macro_rules! impl_error_chain_kind { } } } - #[allow(unknown_lints, unused, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)] + #[allow(unknown_lints, unused, renamed_and_removed_lints)] + #[allow(unused_doc_comment, unused_doc_comments)] impl $name { /// A string describing the error kind. pub fn description(&self) -> &str {