From c5f05bc5fb56bad6aa5932dce7ddf9071fd65cd9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 23 Dec 2019 11:18:31 +0100 Subject: Remove unnecessary return keyword Signed-off-by: Matthias Beyer --- lib/domain/libimagbookmark/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/domain/libimagbookmark/src/store.rs b/lib/domain/libimagbookmark/src/store.rs index 9e3d4429..acaa2674 100644 --- a/lib/domain/libimagbookmark/src/store.rs +++ b/lib/domain/libimagbookmark/src/store.rs @@ -73,7 +73,7 @@ impl BookmarkStore for Store { fn get_bookmark_by_id<'a>(&'a self, sid: StoreId) -> Result>> { if let Some(entry) = self.get(sid)? { if !entry.is_bookmark()? { - return Err(format_err!("Not a bookmark: {}", entry.get_location())); + Err(format_err!("Not a bookmark: {}", entry.get_location())) } else { Ok(Some(entry)) } -- cgit v1.2.3