From 38791ea2f990743ee47a436dc58cf260d808f1ef Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 29 Jan 2016 16:50:20 +0100 Subject: [PATCH] Fix: negation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested-by: Marcel Müller --- libimagstore/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 621be544..caf29dd6 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -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;