Simplify
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
d19020c3f5
commit
734112b856
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ impl<'a> Iterator for CategoryNameIter<'a> {
|
||||||
.read_string(query)
|
.read_string(query)
|
||||||
.map_err(Error::from)
|
.map_err(Error::from)
|
||||||
.context(EM::EntryHeaderReadError)?
|
.context(EM::EntryHeaderReadError)?
|
||||||
.ok_or_else(|| Error::from(err_msg("Store read error")))
|
.ok_or_else(|| err_msg("Store read error"))
|
||||||
|
.map_err(Error::from)
|
||||||
};
|
};
|
||||||
|
|
||||||
return Some(func(&self.0))
|
return Some(func(&self.0))
|
||||||
|
|
Loading…
Reference in a new issue