summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-02-12 19:03:39 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-02-12 19:04:15 +0100
commit2a07c8a0c26bb2f65e9ac3292b0b3e18101db4a5 (patch)
tree09e5c47b54cfb6f792969e76b2db82b707af41a8 /lib
parent86dca4887d0e7a9540c951e06aed112eb1593786 (diff)
Do not use deprecated way of checking whether path exists
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/domain/libimagwiki/src/store.rs2
1 files changed, 1 insertions, 1 deletions
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<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 {