Change Store::update() to be non-consuming
This commit is contained in:
parent
ef07c2cba9
commit
a53547e08a
1 changed files with 2 additions and 2 deletions
|
@ -606,8 +606,8 @@ impl Store {
|
||||||
///
|
///
|
||||||
/// See `Store::_update()`.
|
/// See `Store::_update()`.
|
||||||
///
|
///
|
||||||
pub fn update<'a>(&'a self, mut entry: FileLockEntry<'a>) -> Result<()> {
|
pub fn update<'a>(&'a self, mut entry: &FileLockEntry<'a>) -> Result<()> {
|
||||||
self._update(&mut entry, false).map_err_into(SEK::UpdateCallError)
|
self._update(entry, false).map_err_into(SEK::UpdateCallError)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Internal method to write to the filesystem store.
|
/// Internal method to write to the filesystem store.
|
||||||
|
|
Loading…
Reference in a new issue