From 29c9ad71b55879aad57e502c8e00e187af82faea Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 30 Oct 2017 20:19:29 +0100 Subject: [PATCH] Replace uses of try!() macro with "?" operator --- lib/domain/libimagnotes/src/notestore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/domain/libimagnotes/src/notestore.rs b/lib/domain/libimagnotes/src/notestore.rs index b16de614..0547b68a 100644 --- a/lib/domain/libimagnotes/src/notestore.rs +++ b/lib/domain/libimagnotes/src/notestore.rs @@ -49,10 +49,10 @@ impl<'a> NoteStore<'a> for Store { debug!("Creating new Note: '{}'", name); let fle = { - let mut lockentry = try!(ModuleEntryPath::new(name.clone()) + let mut lockentry = ModuleEntryPath::new(name.clone()) .into_storeid() .and_then(|id| self.create(id)) - .chain_err(|| NEK::StoreWriteError)); + .chain_err(|| NEK::StoreWriteError)?; { let entry = lockentry.deref_mut();