Merge pull request #154 from matthiasbeyer/libimagstore/fix-152
Fix: negation error
This commit is contained in:
commit
fbb296495b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue