diff options
Diffstat (limited to 'bin/core/imag-create')
-rw-r--r-- | bin/core/imag-create/Cargo.toml | 2 | ||||
-rw-r--r-- | bin/core/imag-create/src/lib.rs | 8 | ||||
-rw-r--r-- | bin/core/imag-create/src/ui.rs | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/core/imag-create/Cargo.toml b/bin/core/imag-create/Cargo.toml index fca9dedc..e4ee82ea 100644 --- a/bin/core/imag-create/Cargo.toml +++ b/bin/core/imag-create/Cargo.toml @@ -16,7 +16,7 @@ homepage = "http://imag-pim.org" [dependencies] log = "0.4" -failure = "0.1" +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-create/src/lib.rs b/bin/core/imag-create/src/lib.rs index 03004ea4..674f1ef9 100644 --- a/bin/core/imag-create/src/lib.rs +++ b/bin/core/imag-create/src/lib.rs @@ -35,14 +35,14 @@ )] extern crate clap; -extern crate failure; +#[macro_use] extern crate anyhow; extern crate libimagerror; extern crate libimagrt; extern crate libimagstore; -use failure::Fallible as Result; -use failure::err_msg; +use anyhow::Result; + use clap::App; use libimagrt::runtime::Runtime; @@ -61,7 +61,7 @@ impl ImagApplication for ImagCreate { let force = rt.cli().is_present("force"); let ids = rt.ids::<crate::ui::PathProvider>()? - .ok_or_else(|| err_msg("No ids supplied"))? + .ok_or_else(|| anyhow!("No ids supplied"))? .into_iter() .map(Ok); diff --git a/bin/core/imag-create/src/ui.rs b/bin/core/imag-create/src/ui.rs index b832f17d..8e5cad01 100644 --- a/bin/core/imag-create/src/ui.rs +++ b/bin/core/imag-create/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 libimagstore::storeid::IntoStoreId; |