Remove unwrap in drop and warn users

This commit is contained in:
Marcel Müller 2016-02-07 00:58:53 +01:00
parent 9ba2439da3
commit e315fa9dcf
No known key found for this signature in database
GPG key ID: DD4ED37D0CAC76E2

View file

@ -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);
} }
} }