summaryrefslogtreecommitdiffstats
path: root/lib/entry/libimagentryref/src/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/entry/libimagentryref/src/flags.rs')
-rw-r--r--lib/entry/libimagentryref/src/flags.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/entry/libimagentryref/src/flags.rs b/lib/entry/libimagentryref/src/flags.rs
index 53b41540..a15a97ce 100644
--- a/lib/entry/libimagentryref/src/flags.rs
+++ b/lib/entry/libimagentryref/src/flags.rs
@@ -22,7 +22,6 @@ use std::collections::BTreeMap;
use toml::Value;
use error::RefErrorKind as REK;
-use error::ResultExt;
use error::Result;
pub struct RefFlags {
@@ -41,7 +40,7 @@ impl RefFlags {
use toml_query::read::TomlValueReadExt;
v.read(key)
- .chain_err(|| REK::HeaderTomlError)
+ .map_err(From::from)
.and_then(|toml| match toml {
Some(&Value::Boolean(b)) => Ok(b),
Some(_) => Err(REK::HeaderTypeError.into()),