Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Congyuwang committed Oct 31, 2024
1 parent c19e01a commit 47f51ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ fn wide_columns_test() {
let path = DBPath::new("_rust_rocksdb_widecolumns_test");
let opt = WriteOptions::new();
{
#[cfg(feature = "multi-threaded-cf")]
let db = DB::open_default(&path).unwrap();
#[cfg(not(feature = "multi-threaded-cf"))]
let mut db = DB::open_default(&path).unwrap();
db.create_cf("test", &Options::default()).unwrap();
let cf = db.cf_handle("test").unwrap();
Expand Down
3 changes: 3 additions & 0 deletions tests/test_write_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ fn test_write_batch_clear() {
fn test_write_batch_wide_columns() {
let path = DBPath::new("_rust_rocksdb_write_batch_widecolumns_test");
{
#[cfg(feature = "multi-threaded-cf")]
let db = DB::open_default(&path).unwrap();
#[cfg(not(feature = "multi-threaded-cf"))]
let mut db = DB::open_default(&path).unwrap();
db.create_cf("test", &Options::default()).unwrap();
let cf = db.cf_handle("test").unwrap();
Expand Down

0 comments on commit 47f51ec

Please sign in to comment.