Correctlly report the cause of IoError (#195)
This commit is contained in:
parent
e27043a036
commit
b6dbb08f92
|
|
@ -68,7 +68,7 @@ impl error::Error for ErrorKind {
|
|||
|
||||
fn cause(&self) -> Option<&error::Error> {
|
||||
match *self {
|
||||
ErrorKind::IoError(ref err) => err.cause(),
|
||||
ErrorKind::IoError(ref err) => Some(err),
|
||||
ErrorKind::InvalidEncoding{..} => None,
|
||||
ErrorKind::SequenceMustHaveLength => None,
|
||||
ErrorKind::SizeLimit => None,
|
||||
|
|
|
|||
Loading…
Reference in New Issue