diff --git a/lib/domain/libimagwiki/src/store.rs b/lib/domain/libimagwiki/src/store.rs index 165e03a2..a80c588c 100644 --- a/lib/domain/libimagwiki/src/store.rs +++ b/lib/domain/libimagwiki/src/store.rs @@ -41,7 +41,7 @@ impl WikiStore for Store { /// get a wiki by its name fn get_wiki<'a, 'b>(&'a self, name: &'b str) -> Result>> { - if self.exists(wiki_path(name.as_ref())?)? { + if self.exists(wiki_path(name)?)? { debug!("Building Wiki object"); Ok(Some(Wiki::new(self, name))) } else { diff --git a/lib/domain/libimagwiki/src/wiki.rs b/lib/domain/libimagwiki/src/wiki.rs index 408a6771..9edf7deb 100644 --- a/lib/domain/libimagwiki/src/wiki.rs +++ b/lib/domain/libimagwiki/src/wiki.rs @@ -61,7 +61,7 @@ impl<'a, 'b> Wiki<'a, 'b> { .get(sid) .context("Cannot get ID from store") .map_err(Error::from)? - .ok_or_else(|| Error::from(err_msg("Missing index"))) + .ok_or_else(|| err_msg("Missing index")) } pub fn get_entry>(&self, entry_name: EN) -> Result>> {