diff options
-rw-r--r-- | libimagnotes/src/note.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagnotes/src/note.rs b/libimagnotes/src/note.rs index 84c7542e..e6e59570 100644 --- a/libimagnotes/src/note.rs +++ b/libimagnotes/src/note.rs @@ -28,7 +28,7 @@ impl<'a> Note<'a> { debug!("Creating new Note: '{}'", name); let fle = { - let mut lockentry = store.create(ModuleEntryPath::new(name.clone()).into_storeid()); + 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())))); } @@ -69,7 +69,7 @@ impl<'a> Note<'a> { } pub fn get_name(&self) -> Result<String> { - let mut header = self.entry.deref().get_header(); + let header = self.entry.deref().get_header(); match header.read("note.name") { Ok(Some(Value::String(s))) => Ok(String::from(s)), Ok(_) => { |