Do not use deprecated way of checking whether path exists

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-02-12 19:03:39 +01:00
parent 86dca4887d
commit 2a07c8a0c2

View file

@ -42,7 +42,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 wiki_path(name.as_ref())?.with_base(self.path().clone()).exists()? { if self.exists(wiki_path(name.as_ref())?)? {
debug!("Building Wiki object"); debug!("Building Wiki object");
Ok(Some(Wiki::new(self, name))) Ok(Some(Wiki::new(self, name)))
} else { } else {