~matthiasbeyer/imag

4fce6f3042b3fd99beab9e371c43b0ee96babaac — Matthias Beyer 1 year, 2 months ago 6bc08b6
Remove redundant clone() call

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

M lib/core/libimagstore/src/store.rs
M lib/core/libimagstore/src/store.rs => lib/core/libimagstore/src/store.rs +1 -1
@@ 530,7 530,7 @@ impl Store {
            .context(anyhow!("MoveCallError: {} -> {}", entry.get_location(), new_id))?;

        if hsmap.contains_key(&new_id) {
            return Err(anyhow!("Entry exists already: {}", new_id.clone()))
            return Err(anyhow!("Entry exists already: {}", new_id))
                .context(anyhow!("MoveCallError: {} -> {}", entry.get_location(), new_id))
                .map_err(Error::from)
        }