Skip to content

Commit

Permalink
Fix formatting of some LMDB tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Aug 20, 2024
1 parent c2bb3c2 commit 0662455
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions lmdb-master3-sys/tests/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,14 @@ fn test_simple(env_path: &str) {

let mut env: *mut MDB_env = ptr::null_mut();
let mut dbi: MDB_dbi = 0;
let mut key = MDB_val { mv_size: 0, mv_data: ptr::null_mut() };
let mut data = MDB_val { mv_size: 0, mv_data: ptr::null_mut() };
let mut key = MDB_val {
mv_size: 0,
mv_data: ptr::null_mut(),
};
let mut data = MDB_val {
mv_size: 0,
mv_data: ptr::null_mut(),
};
let mut txn: *mut MDB_txn = ptr::null_mut();
let sval = cstr!("foo").as_ptr() as *mut c_void;
let dval = cstr!("bar").as_ptr() as *mut c_void;
Expand All @@ -59,7 +65,12 @@ fn test_simple(env_path: &str) {
E!(mdb_env_open(env, env_path.as_ptr(), 0, 0o664));

E!(mdb_txn_begin(env, ptr::null_mut(), 0, &mut txn));
E!(mdb_dbi_open(txn, cstr!("subdb").as_ptr(), MDB_CREATE, &mut dbi));
E!(mdb_dbi_open(
txn,
cstr!("subdb").as_ptr(),
MDB_CREATE,
&mut dbi
));
E!(mdb_txn_commit(txn));

key.mv_size = 3;
Expand Down

0 comments on commit 0662455

Please sign in to comment.