Revert change to unwrap_err() here, trait bounds not fulfilled

This commit is contained in:
Matthias Beyer 2016-04-18 10:54:50 +02:00
parent 01c226f0ca
commit 381a9b3f5b

View file

@ -30,7 +30,7 @@ impl<'a> Counter<'a> {
let fle = { let fle = {
let lockentry = store.create(ModuleEntryPath::new(name.clone()).into_storeid()); let lockentry = store.create(ModuleEntryPath::new(name.clone()).into_storeid());
if lockentry.is_err() { 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(); let mut lockentry = lockentry.unwrap();