[Auto] lib/domain/wiki: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:47:35 +02:00 committed by Matthias Beyer
parent 532564e9eb
commit e365763857
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ impl WikiStore for Store {
/// get a wiki by its name /// get a wiki by its name
fn get_wiki<'a, 'b>(&'a self, name: &'b str) -> Result<Option<Wiki<'a, 'b>>> { fn get_wiki<'a, 'b>(&'a self, name: &'b str) -> Result<Option<Wiki<'a, 'b>>> {
if self.exists(wiki_path(name.as_ref())?)? { if self.exists(wiki_path(name)?)? {
debug!("Building Wiki object"); debug!("Building Wiki object");
Ok(Some(Wiki::new(self, name))) Ok(Some(Wiki::new(self, name)))
} else { } else {

View file

@ -61,7 +61,7 @@ impl<'a, 'b> Wiki<'a, 'b> {
.get(sid) .get(sid)
.context("Cannot get ID from store") .context("Cannot get ID from store")
.map_err(Error::from)? .map_err(Error::from)?
.ok_or_else(|| Error::from(err_msg("Missing index"))) .ok_or_else(|| err_msg("Missing index"))
} }
pub fn get_entry<EN: AsRef<str>>(&self, entry_name: EN) -> Result<Option<FileLockEntry<'a>>> { pub fn get_entry<EN: AsRef<str>>(&self, entry_name: EN) -> Result<Option<FileLockEntry<'a>>> {