diff options
Diffstat (limited to 'lib/domain/libimagbookmark/src/store.rs')
-rw-r--r-- | lib/domain/libimagbookmark/src/store.rs | 6 |
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())) } } |