diff --git a/libimagnotes/src/note.rs b/libimagnotes/src/note.rs index 4f30b3c6..0487cb1c 100644 --- a/libimagnotes/src/note.rs +++ b/libimagnotes/src/note.rs @@ -32,7 +32,7 @@ impl<'a> Note<'a> { let fle = { let lockentry = store.create(ModuleEntryPath::new(name.clone()).into_storeid()); if lockentry.is_err() { - return Err(NE::new(NEK::StoreWriteError, Some(Box::new(lockentry.err().unwrap())))); + return Err(NE::new(NEK::StoreWriteError, Some(Box::new(lockentry.unwrap_err())))); } let mut lockentry = lockentry.unwrap(); @@ -44,13 +44,13 @@ impl<'a> Note<'a> { let setres = header.set("note", Value::Table(BTreeMap::new())); if setres.is_err() { let kind = NEK::StoreWriteError; - return Err(NE::new(kind, Some(Box::new(setres.err().unwrap())))); + return Err(NE::new(kind, Some(Box::new(setres.unwrap_err())))); } let setres = header.set("note.name", Value::String(name)); if setres.is_err() { let kind = NEK::StoreWriteError; - return Err(NE::new(kind, Some(Box::new(setres.err().unwrap())))); + return Err(NE::new(kind, Some(Box::new(setres.unwrap_err())))); } }