Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit c726ebe

Browse files
committed
try (1) split 'allow' lints
1 parent 38f2324 commit c726ebe

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/error_chain.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ macro_rules! impl_error_chain_processed {
179179
self.description()
180180
}
181181

182-
#[allow(unknown_lints, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
182+
#[allow(unknown_lints, renamed_and_removed_lints)]
183+
#[allow(unused_doc_comment, unused_doc_comments)]
183184
fn cause(&self) -> Option<&::std::error::Error> {
184185
match self.1.next_error {
185186
Some(ref c) => Some(&**c),
@@ -421,7 +422,8 @@ macro_rules! impl_extract_backtrace {
421422
($error_name: ident
422423
$error_kind_name: ident
423424
$([$link_error_path: path, $(#[$meta_links: meta])*])*) => {
424-
#[allow(unknown_lints, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
425+
#[allow(unknown_lints, renamed_and_removed_lints)]
426+
#[allow(unused_doc_comment, unused_doc_comments)]
425427
fn extract_backtrace(e: &(::std::error::Error + Send + 'static))
426428
-> Option<$crate::InternalBacktrace> {
427429
if let Some(e) = e.downcast_ref::<$error_name>() {

src/impl_error_chain_kind.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ macro_rules! impl_error_chain_kind {
224224
$item:ident: $imode:tt [$(#[$imeta:meta])*] [$( $var:ident: $typ:ty ),*] {$( $funcs:tt )*}
225225
)*}
226226
) => {
227-
#[allow(unknown_lints, unused, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
227+
#[allow(unknown_lints, unused, renamed_and_removed_lints)]
228+
#[allow(unused_doc_comment, unused_doc_comments)]
228229
impl ::std::fmt::Display for $name {
229230
fn fmt(&self, fmt: &mut ::std::fmt::Formatter)
230231
-> ::std::fmt::Result
@@ -247,7 +248,8 @@ macro_rules! impl_error_chain_kind {
247248
}
248249
}
249250
}
250-
#[allow(unknown_lints, unused, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
251+
#[allow(unknown_lints, unused, renamed_and_removed_lints)]
252+
#[allow(unused_doc_comment, unused_doc_comments)]
251253
impl $name {
252254
/// A string describing the error kind.
253255
pub fn description(&self) -> &str {

0 commit comments

Comments
 (0)