From f28d86e5b40f91e0367633bf03a34245f6d3b841 Mon Sep 17 00:00:00 2001 From: Ziyang Hu Date: Mon, 5 Dec 2022 00:51:48 +0800 Subject: [PATCH] keep db --- cozo-core/benches/pokec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cozo-core/benches/pokec.rs b/cozo-core/benches/pokec.rs index fe5fcef8..6ee50407 100644 --- a/cozo-core/benches/pokec.rs +++ b/cozo-core/benches/pokec.rs @@ -47,7 +47,7 @@ lazy_static! { db_path.push(format!("{}-{}.db", db_kind, data_size)); // let _ = std::fs::remove_file(&db_path); // let _ = std::fs::remove_dir_all(&db_path); - let path_exists = Path::exists(db_path); + let path_exists = Path::exists(&db_path); let db = DbInstance::new(&db_kind, db_path.to_str().unwrap(), "").unwrap(); if path_exists { return db