Do not use deprecated way of checking whether path exists
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
86dca4887d
commit
2a07c8a0c2
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,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 wiki_path(name.as_ref())?.with_base(self.path().clone()).exists()? {
|
||||
if self.exists(wiki_path(name.as_ref())?)? {
|
||||
debug!("Building Wiki object");
|
||||
Ok(Some(Wiki::new(self, name)))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue