diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs
index fe38518c..87221253 100644
--- a/libimagstore/src/store.rs
+++ b/libimagstore/src/store.rs
@@ -156,7 +156,7 @@ impl Store {
if c.is_err() {
debug!("Failed");
return Err(StoreError::new(StoreErrorKind::StorePathCreate,
- Some(Box::new(c.err().unwrap()))));
+ Some(Box::new(c.unwrap_err()))));
}
} else {
if location.is_file() {
@@ -434,7 +434,7 @@ impl Store {
if guard.is_err() {
return Err(StoreError::new(StoreErrorKind::HookRegisterError,
- Some(Box::new(guard.err().unwrap()))));
+ Some(Box::new(guard.unwrap_err()))));
}
let mut guard = guard.unwrap();
for mut aspect in guard.deref_mut() {
@@ -764,7 +764,7 @@ impl EntryHeader {
pub fn set_with_sep(&mut self, spec: &str, sep: char, v: Value) -> Result