From d19020c3f511dfd597c5de70e71ec4cf17a78172 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 9 Mar 2019 12:24:09 +0100 Subject: [PATCH] Remove unnecessary Error::from() call Signed-off-by: Matthias Beyer --- lib/entry/libimagentrycategory/src/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/entry/libimagentrycategory/src/iter.rs b/lib/entry/libimagentrycategory/src/iter.rs index 679dca18..a9df295d 100644 --- a/lib/entry/libimagentrycategory/src/iter.rs +++ b/lib/entry/libimagentrycategory/src/iter.rs @@ -68,7 +68,7 @@ impl<'a> Iterator for CategoryNameIter<'a> { let func = |store: &Store| { // hack for returning Some(Result<_, _>) store .get(sid)? - .ok_or_else(|| Error::from(err_msg("Store read error")))? + .ok_or_else(|| err_msg("Store read error"))? .get_header() .read_string(query) .map_err(Error::from)