From 2a07c8a0c26bb2f65e9ac3292b0b3e18101db4a5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 12 Feb 2019 19:03:39 +0100 Subject: [PATCH] Do not use deprecated way of checking whether path exists Signed-off-by: Matthias Beyer --- lib/domain/libimagwiki/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/domain/libimagwiki/src/store.rs b/lib/domain/libimagwiki/src/store.rs index 6b010f86..f0520398 100644 --- a/lib/domain/libimagwiki/src/store.rs +++ b/lib/domain/libimagwiki/src/store.rs @@ -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>> { - 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 {