Change Store::update() to be non-consuming

This commit is contained in:
Matthias Beyer 2017-02-26 19:54:40 +01:00
parent ef07c2cba9
commit a53547e08a

View file

@ -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.