summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-23 11:18:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-23 15:43:48 +0100
commitc5f05bc5fb56bad6aa5932dce7ddf9071fd65cd9 (patch)
tree5fa861dab232e6f1624bbf4e550de6bf44dd609b
parent1614fb22a274468aa4ff923b7a4378241a9a839c (diff)
Remove unnecessary return keyword
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/domain/libimagbookmark/src/store.rs2
1 files changed, 1 insertions, 1 deletions
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<Option<FileLockEntry<'a>>> {
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))
}