This repository was archived by the owner on Aug 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 55- [ Add a new method for ` Error ` : ` chain_err ` .] ( https://github.com/brson/error-chain/pull/141 )
66- [ Allow ` chain_err ` to be used on ` Option<T> ` ] ( https://github.com/brson/error-chain/pull/156 )
77- [ Add support for creating an error chain on boxed trait errors (` Box<Error> ` )] ( https://github.com/brson/error-chain/pull/156 )
8+ - [ Remove lint for unused doc comment.] ( https://github.com/brson/error-chain/pull/199 )
89
910# 0.10.0
1011
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ macro_rules! error_chain_processed {
172172 self . 0 . description( )
173173 }
174174
175+ #[ allow( unused_doc_comment) ]
175176 fn cause( & self ) -> Option <& :: std:: error:: Error > {
176177 match self . 1 . next_error {
177178 Some ( ref c) => Some ( & * * c) ,
@@ -423,6 +424,7 @@ macro_rules! impl_extract_backtrace {
423424 ( $error_name: ident
424425 $error_kind_name: ident
425426 $( [ $link_error_path: path, $( #[ $meta_links: meta] ) * ] ) * ) => {
427+ #[ allow( unused_doc_comment) ]
426428 fn extract_backtrace( e: & ( :: std:: error:: Error + Send + ' static ) )
427429 -> Option <:: std:: sync:: Arc <$crate:: Backtrace >> {
428430 if let Some ( e) = e. downcast_ref:: <$error_name>( ) {
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ macro_rules! quick_error {
260260 $item: ident: $imode: tt [ $( #[ $imeta: meta] ) * ] [ $( $var: ident: $typ: ty ) ,* ] { $( $funcs: tt ) * }
261261 ) * }
262262 ) => {
263- #[ allow( unused) ]
263+ #[ allow( unused, unused_doc_comment ) ]
264264 impl :: std:: fmt:: Display for $name {
265265 fn fmt( & self , fmt: & mut :: std:: fmt:: Formatter )
266266 -> :: std:: fmt:: Result
@@ -310,7 +310,7 @@ macro_rules! quick_error {
310310 }
311311 }
312312 }*/
313- #[ allow( unused) ]
313+ #[ allow( unused, unused_doc_comment ) ]
314314 impl $name {
315315 /// A string describing the error kind.
316316 pub fn description( & self ) -> & str {
You can’t perform that action at this time.
0 commit comments