diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2017-08-28 17:42:26 +0900 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2017-08-28 18:22:41 +0900 |
commit | f8710bd4b0b914d37be2671d92d67a4e5fbd941b (patch) | |
tree | 48adfbbbd984a7011ff3e9990a24052d0bb4d1da /src/error.rs | |
parent | 8d05b8f7b217e877622524e9507bc7f00c82a476 (diff) |
Format
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/error.rs b/src/error.rs index 8b34571..7a2db9d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -112,12 +112,9 @@ impl From<schema::DocParsingError> for Error { impl From<OpenWriteError> for Error { fn from(error: OpenWriteError) -> Error { match error { - OpenWriteError::FileAlreadyExists(filepath) => { - ErrorKind::FileAlreadyExists(filepath) - } - OpenWriteError::IOError(io_error) => ErrorKind::IOError(io_error), - } - .into() + OpenWriteError::FileAlreadyExists(filepath) => ErrorKind::FileAlreadyExists(filepath), + OpenWriteError::IOError(io_error) => ErrorKind::IOError(io_error), + }.into() } } |