summaryrefslogtreecommitdiffstats
path: root/libimagcounter
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-04-18 10:54:50 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-04-20 21:46:02 +0200
commit381a9b3f5b2ba3b7857f110bdfa8d8a2d72fde42 (patch)
tree4df902cf550c7ef64c494eb25d9beb6e78bda6ff /libimagcounter
parent01c226f0ca201d12c740626fae52f1b27e99a369 (diff)
Revert change to unwrap_err() here, trait bounds not fulfilled
Diffstat (limited to 'libimagcounter')
-rw-r--r--libimagcounter/src/counter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libimagcounter/src/counter.rs b/libimagcounter/src/counter.rs
index c245e261..2285071f 100644
--- a/libimagcounter/src/counter.rs
+++ b/libimagcounter/src/counter.rs
@@ -30,7 +30,7 @@ impl<'a> Counter<'a> {
let fle = {
let lockentry = store.create(ModuleEntryPath::new(name.clone()).into_storeid());
if lockentry.is_err() {
- return Err(CE::new(CEK::StoreWriteError, Some(Box::new(lockentry.unwrap_err()))));
+ return Err(CE::new(CEK::StoreWriteError, Some(Box::new(lockentry.err().unwrap()))));
}
let mut lockentry = lockentry.unwrap();