From ba37f3562deae399024e75e884799582863393a5 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 19 Sep 2020 10:01:57 +0200 Subject: [PATCH] src/backup/datastore.rs - open_with_path: use Path instead of str --- src/backup/datastore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs index 743bf79c..d24645a7 100644 --- a/src/backup/datastore.rs +++ b/src/backup/datastore.rs @@ -70,10 +70,10 @@ impl DataStore { let path = store_config["path"].as_str().unwrap(); - Self::open_with_path(store_name, path) + Self::open_with_path(store_name, Path::new(path)) } - pub fn open_with_path(store_name: &str, path: &str) -> Result { + pub fn open_with_path(store_name: &str, path: &Path) -> Result { let chunk_store = ChunkStore::open(store_name, path)?; let gc_status = GarbageCollectionStatus::default();