[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:
parent
532564e9eb
commit
e365763857
2 changed files with 2 additions and 2 deletions
|
@ -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<Option<Wiki<'a, 'b>>> {
|
||||
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 {
|
||||
|
|
|
@ -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<EN: AsRef<str>>(&self, entry_name: EN) -> Result<Option<FileLockEntry<'a>>> {
|
||||
|
|
Loading…
Reference in a new issue