summaryrefslogtreecommitdiffstats
path: root/lib/domain/libimagbookmark/src/store.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-03-08 12:06:42 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-03-08 12:06:42 +0100
commitcb9f6e7f46eb1a05071947d5f28bb1fe45313734 (patch)
tree6e5a8e08e5b204f202de335d412de3f69196ce12 /lib/domain/libimagbookmark/src/store.rs
parent00aa4df88edae1d5eeb3fb365af05f95bd0de3b4 (diff)
parent666193dfc26181b6606cb85de5389c4ed6ece5eb (diff)
Merge branch 'replace-failure-with-anyhow'
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/domain/libimagbookmark/src/store.rs')
-rw-r--r--lib/domain/libimagbookmark/src/store.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/domain/libimagbookmark/src/store.rs b/lib/domain/libimagbookmark/src/store.rs
index 536e8900..a9519302 100644
--- a/lib/domain/libimagbookmark/src/store.rs
+++ b/lib/domain/libimagbookmark/src/store.rs
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
-use failure::Fallible as Result;
+use anyhow::Result;
use uuid::Uuid;
use url::Url;
@@ -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()? {
- Err(format_err!("Not a bookmark: {}", entry.get_location()))
+ Err(anyhow!("Not a bookmark: {}", entry.get_location()))
} else {
Ok(Some(entry))
}
@@ -92,7 +92,7 @@ impl BookmarkStore for Store {
drop(fle);
self.delete(id)
} else {
- Err(format_err!("Not a bookmark: {}", fle.get_location()))
+ Err(anyhow!("Not a bookmark: {}", fle.get_location()))
}
}