src/backup/datastore.rs - open_with_path: use Path instead of str

This commit is contained in:
Dietmar Maurer 2020-09-19 10:01:57 +02:00
parent fce4659388
commit ba37f3562d

View File

@ -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<Self, Error> {
pub fn open_with_path(store_name: &str, path: &Path) -> Result<Self, Error> {
let chunk_store = ChunkStore::open(store_name, path)?;
let gc_status = GarbageCollectionStatus::default();