diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-11-10 01:13:25 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-12-22 02:03:35 +0100 |
commit | 18c438bb7ac650744f9dcaccd4de6800170a91a8 (patch) | |
tree | 303ef9558e3957ec30750d97c79a08d8332d0184 | |
parent | 51799f4ce0fe4c16cbe83dc13d696bb8e6b4ab8e (diff) |
Remove unused Error::from() call
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | bin/core/imag-view/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/core/imag-view/src/lib.rs b/bin/core/imag-view/src/lib.rs index e0245308..d97d8711 100644 --- a/bin/core/imag-view/src/lib.rs +++ b/bin/core/imag-view/src/lib.rs @@ -259,7 +259,7 @@ fn create_tempfile_for<'a>(entry: &FileLockEntry<'a>, view_header: bool, hide_co .path() .to_str() .map(String::from) - .ok_or_else(|| Error::from(err_msg("Cannot build path")))?; + .ok_or_else(|| err_msg("Cannot build path"))?; Ok((tmpfile, file_path)) } |