aboutsummaryrefslogtreecommitdiff
path: root/src/db/test.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-03 11:14:24 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-03 11:14:24 +0200
commitcc0d984118e345c72341ff12d74b1c35deb20ae8 (patch)
tree04a3b045302987f673fd31e7c21b110ea824f93f /src/db/test.rs
parentf25309e58f839d1fad6b094cd33d7f36b5c3e2e0 (diff)
downloadgarage-cc0d984118e345c72341ff12d74b1c35deb20ae8.tar.gz
garage-cc0d984118e345c72341ff12d74b1c35deb20ae8.zip
Fix most clippy lints
Diffstat (limited to 'src/db/test.rs')
-rw-r--r--src/db/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/test.rs b/src/db/test.rs
index 2f5e4c46..75200cf1 100644
--- a/src/db/test.rs
+++ b/src/db/test.rs
@@ -81,13 +81,13 @@ fn test_suite(db: Db) {
#[test]
fn test_sled_db() {
let path = mktemp::Temp::new_dir().unwrap();
- let db = SledDb::new(sled::open(path.to_path_buf()).unwrap());
+ let db = SledDb::init(sled::open(path.to_path_buf()).unwrap());
test_suite(db);
drop(path);
}
#[test]
fn test_sqlite_db() {
- let db = SqliteDb::new(rusqlite::Connection::open_in_memory().unwrap());
+ let db = SqliteDb::init(rusqlite::Connection::open_in_memory().unwrap());
test_suite(db);
}