diff options
author | Ashley Mannix <ashleymannix@live.com.au> | 2017-05-28 20:27:09 +1000 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2017-05-29 18:29:39 +0900 |
commit | d79018a7f805488047473ce5a79013bd358b1f2b (patch) | |
tree | 07ebaf9a6e2cf59f9bd085f7cdfad939a3eb9d3f /src/directory | |
parent | d8a7c428f78e8eca7a1db2fba1489524f5c4070e (diff) |
fix build warnings
Diffstat (limited to 'src/directory')
-rw-r--r-- | src/directory/error.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/directory/error.rs b/src/directory/error.rs index 6f0e8ca..4f422a1 100644 --- a/src/directory/error.rs +++ b/src/directory/error.rs @@ -191,8 +191,7 @@ impl StdError for DeleteError { fn cause(&self) -> Option<&StdError> { match *self { - DeleteError::FileDoesNotExist(_) => None, - DeleteError::FileProtected(ref path) => None, + DeleteError::FileDoesNotExist(_) | DeleteError::FileProtected(_) => None, DeleteError::IOError(ref err) => Some(err) } } |