~matthiasbeyer/imag

2d258c3e914cae275a16699107b8883fe25c3500 — Matthias Beyer 1 year, 3 months ago ef85e0e
Remove unnecessary clone().to_string() calls

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/entry/libimagentryview/src/builtin/editor.rs
M lib/entry/libimagentryview/src/builtin/editor.rs => lib/entry/libimagentryview/src/builtin/editor.rs +1 -1
@@ 40,7 40,7 @@ impl<'a> Viewer for EditorView<'a> {
    fn view_entry<W>(&self, e: &Entry, _sink: &mut W) -> Result<()>
        where W: Write
    {
        let mut entry = e.to_str()?.clone().to_string();
        let mut entry = e.to_str()?;
        edit_in_tmpfile(self.0, &mut entry)
            .context("Error while viewing")
            .map_err(Error::from)