This repository was archived by the owner on Aug 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11# Unreleased
22
3+ - [ Remove ` impl Deref<Kind> for Error ` ] ( https://github.com/rust-lang-nursery/error-chain/pull/192 )
4+
35# 0.11.0
46
57- Change last rust version supported to 1.14
Original file line number Diff line number Diff line change @@ -166,11 +166,17 @@ macro_rules! impl_error_chain_processed {
166166 where F : FnOnce ( ) -> EK , EK : Into <$error_kind_name> {
167167 $error_name:: with_chain( self , Self :: from_kind( error( ) . into( ) ) )
168168 }
169+
170+ /// A short description of the error.
171+ /// This method is identical to [`Error::description()`](https://doc.rust-lang.org/nightly/std/error/trait.Error.html#tymethod.description)
172+ pub fn description( & self ) -> & str {
173+ self . 0 . description( )
174+ }
169175 }
170176
171177 impl :: std:: error:: Error for $error_name {
172178 fn description( & self ) -> & str {
173- self . 0 . description( )
179+ self . description( )
174180 }
175181
176182 #[ allow( unknown_lints, unused_doc_comment) ]
@@ -239,14 +245,6 @@ macro_rules! impl_error_chain_processed {
239245 }
240246 }
241247
242- impl :: std:: ops:: Deref for $error_name {
243- type Target = $error_kind_name;
244-
245- fn deref( & self ) -> & Self :: Target {
246- & self . 0
247- }
248- }
249-
250248
251249 // The ErrorKind type
252250 // --------------
You can’t perform that action at this time.
0 commit comments