diff options
Diffstat (limited to 'bin/core/imag-id-in-collection')
-rw-r--r-- | bin/core/imag-id-in-collection/Cargo.toml | 2 | ||||
-rw-r--r-- | bin/core/imag-id-in-collection/src/lib.rs | 8 | ||||
-rw-r--r-- | bin/core/imag-id-in-collection/src/ui.rs | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/core/imag-id-in-collection/Cargo.toml b/bin/core/imag-id-in-collection/Cargo.toml index 46e92716..19da86fa 100644 --- a/bin/core/imag-id-in-collection/Cargo.toml +++ b/bin/core/imag-id-in-collection/Cargo.toml @@ -24,7 +24,7 @@ filters = "0.3.0" log = "0.4.6" toml = "0.5.1" toml-query = "0.9.2" -failure = "0.1.5" +anyhow = "1" libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore" } libimagrt = { version = "0.10.0", path = "../../../lib/core/libimagrt" } diff --git a/bin/core/imag-id-in-collection/src/lib.rs b/bin/core/imag-id-in-collection/src/lib.rs index ff3db38a..43f3799e 100644 --- a/bin/core/imag-id-in-collection/src/lib.rs +++ b/bin/core/imag-id-in-collection/src/lib.rs @@ -39,7 +39,7 @@ extern crate filters; #[macro_use] extern crate log; extern crate toml; extern crate toml_query; -extern crate failure; +#[macro_use] extern crate anyhow; #[cfg(test)] extern crate env_logger; @@ -51,8 +51,8 @@ extern crate libimagrt; use std::io::Write; use filters::filter::Filter; -use failure::Fallible as Result; -use failure::err_msg; +use anyhow::Result; + use clap::App; use libimagstore::storeid::StoreId; @@ -102,7 +102,7 @@ impl ImagApplication for ImagIdInCollection { trace!("Got output: {:?}", stdout); rt.ids::<crate::ui::PathProvider>()? - .ok_or_else(|| err_msg("No ids supplied"))? + .ok_or_else(|| anyhow!("No ids supplied"))? .iter() .filter(|id| collection_filter.filter(id)) .map(|id| { diff --git a/bin/core/imag-id-in-collection/src/ui.rs b/bin/core/imag-id-in-collection/src/ui.rs index 57e37011..09aa80fd 100644 --- a/bin/core/imag-id-in-collection/src/ui.rs +++ b/bin/core/imag-id-in-collection/src/ui.rs @@ -20,7 +20,7 @@ use std::path::PathBuf; use clap::{Arg, ArgMatches, App}; -use failure::Fallible as Result; +use anyhow::Result; use libimagstore::storeid::StoreId; use libimagrt::runtime::IdPathProvider; |