diff --git a/src/error_chain.rs b/src/error_chain.rs index 125e5b1b3..b7dcb6861 100644 --- a/src/error_chain.rs +++ b/src/error_chain.rs @@ -12,7 +12,8 @@ macro_rules! impl_error_chain_cause_or_source { $( #[$meta_foreign_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 cause(&self) -> Option<&::std::error::Error> { match self.1.next_error { Some(ref c) => Some(&**c), @@ -46,8 +47,8 @@ macro_rules! impl_error_chain_cause_or_source { $( #[$meta_foreign_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 source(&self) -> Option<&(std::error::Error + 'static)> { match self.1.next_error { Some(ref c) => Some(&**c), @@ -482,7 +483,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 87542a51f..eb503d774 100644 --- a/src/impl_error_chain_kind.rs +++ b/src/impl_error_chain_kind.rs @@ -12,7 +12,7 @@ macro_rules! stringify_internal { ($($t:tt)*) => { stringify!($($t)*) } } -/// Macro used interally for output expanding an expression +/// Macro used interally for output expanding an expression #[macro_export] macro_rules! write_internal { ($dst:expr, $($arg:tt)*) => (write!($dst, $($arg)*)) @@ -239,7 +239,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 @@ -262,7 +263,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 {