summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-view/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-view/src/lib.rs')
-rw-r--r--bin/core/imag-view/src/lib.rs2
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))
}