From 97d436db22046a51d38f50e614c6ae15dcf62576 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 21 Mar 2016 18:54:46 +0100 Subject: [PATCH] lib: Remove unneeded "mut" keywords --- libimagnotes/src/note.rs | 4 ++-- 1 file 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 { - 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(_) => {