Remove unwrap in drop and warn users
This commit is contained in:
parent
9ba2439da3
commit
e315fa9dcf
1 changed files with 2 additions and 1 deletions
|
@ -267,8 +267,9 @@ impl<'a> ::std::ops::DerefMut for FileLockEntry<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Drop for FileLockEntry<'a> {
|
impl<'a> Drop for FileLockEntry<'a> {
|
||||||
|
/// This will silently ignore errors, use `Store::update` if you want to catch the errors
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
self.store._update(self).unwrap()
|
let _ = self.store._update(self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue