From a53547e08a1b13636a907e6618fe128974776aec Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 26 Feb 2017 19:54:40 +0100 Subject: [PATCH] Change Store::update() to be non-consuming --- libimagstore/src/store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 7ccb0742..12b8b0f4 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -606,8 +606,8 @@ impl Store { /// /// See `Store::_update()`. /// - pub fn update<'a>(&'a self, mut entry: FileLockEntry<'a>) -> Result<()> { - self._update(&mut entry, false).map_err_into(SEK::UpdateCallError) + pub fn update<'a>(&'a self, mut entry: &FileLockEntry<'a>) -> Result<()> { + self._update(entry, false).map_err_into(SEK::UpdateCallError) } /// Internal method to write to the filesystem store.