Merge pull request #154 from matthiasbeyer/libimagstore/fix-152

Fix: negation error
This commit is contained in:
Matthias Beyer 2016-01-29 19:10:51 +01:00
commit fbb296495b

View file

@ -181,7 +181,7 @@ impl Store {
let mut se = try!(hsmap.get_mut(&entry.key) let mut se = try!(hsmap.get_mut(&entry.key)
.ok_or(StoreError::new(StoreErrorKind::IdNotFound, None))); .ok_or(StoreError::new(StoreErrorKind::IdNotFound, None)));
assert!(!se.is_borrowed(), "Tried to update a non borrowed entry."); assert!(se.is_borrowed(), "Tried to update a non borrowed entry.");
try!(se.write_entry(&entry.entry)); try!(se.write_entry(&entry.entry));
se.status = StoreEntryStatus::Present; se.status = StoreEntryStatus::Present;