Fix: negation error

Suggested-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Matthias Beyer 2016-01-29 16:50:20 +01:00
parent 3b51328aa7
commit 38791ea2f9

View file

@ -178,7 +178,7 @@ impl Store {
let mut se = try!(hsmap.get_mut(&entry.key)
.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));
se.status = StoreEntryStatus::Present;