File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -46,19 +46,7 @@ pub enum Error {
4646
4747impl error:: Error for Error {
4848 fn description ( & self ) -> & str {
49- match * self {
50- Error :: Passphrase => "wrong passphrase" ,
51- Error :: Network => "wrong network" ,
52- Error :: Unsupported ( s) => s,
53- Error :: Mnemonic ( s) => s,
54- Error :: IO ( ref err) => err. description ( ) ,
55- Error :: KeyDerivation ( ref err) => err. description ( ) ,
56- Error :: SecpError ( ref err) => err. description ( ) ,
57- Error :: SymmetricCipherError ( ref err) => match err {
58- & symmetriccipher:: SymmetricCipherError :: InvalidLength => "invalid length" ,
59- & symmetriccipher:: SymmetricCipherError :: InvalidPadding => "invalid padding" ,
60- } ,
61- }
49+ "description() is deprecated; use Display"
6250 }
6351
6452 fn source ( & self ) -> Option < & ( dyn error:: Error + ' static ) > {
@@ -110,8 +98,7 @@ impl convert::From<Error> for io::Error {
11098 match err {
11199 Error :: IO ( e) => e,
112100 _ => {
113- use std:: error:: Error ;
114- io:: Error :: new ( io:: ErrorKind :: Other , err. description ( ) )
101+ io:: Error :: new ( io:: ErrorKind :: Other , err. to_string ( ) )
115102 }
116103 }
117104 }
You can’t perform that action at this time.
0 commit comments