File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ pub enum Error {
17
17
#[ error( "unhandled escape: `\\ {0}`" ) ]
18
18
EscapeError ( char ) ,
19
19
#[ error( "formatter error: {0:?}" ) ]
20
- FmtError ( std:: fmt:: Error ) ,
20
+ FmtError ( # [ from ] std:: fmt:: Error ) ,
21
21
#[ error( "Hexdump error: {0}" ) ]
22
22
HexdumpError ( String ) ,
23
23
#[ error( "Type {0:?} is not valid as a mapping key" ) ]
24
24
KeyTypeError ( & ' static str ) ,
25
25
#[ error( transparent) ]
26
- ParseError ( # [ from ] ParseError ) ,
26
+ ParseError ( Box < ParseError > ) ,
27
27
#[ error( transparent) ]
28
28
ParseBoolError ( #[ from] ParseBoolError ) ,
29
29
#[ error( transparent) ]
@@ -48,8 +48,8 @@ impl de::Error for Error {
48
48
}
49
49
}
50
50
51
- impl From < std :: fmt :: Error > for Error {
52
- fn from ( e : std :: fmt :: Error ) -> Self {
53
- Error :: FmtError ( e )
51
+ impl From < ParseError > for Error {
52
+ fn from ( e : ParseError ) -> Self {
53
+ Error :: ParseError ( Box :: new ( e ) )
54
54
}
55
55
}
You can’t perform that action at this time.
0 commit comments