We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18cf8c7 commit 77aaeebCopy full SHA for 77aaeeb
libsql-sys/src/wal/ffi.rs
@@ -446,8 +446,8 @@ pub unsafe extern "C" fn checkpoint<T: Wal>(
446
_ => panic!("invalid checkpoint mode"),
447
};
448
449
- let in_wal = (!frames_in_wal_out.is_null()).then_some(&mut *frames_in_wal_out);
450
- let backfilled = (!checkpointed_frames_out.is_null()).then_some(&mut *checkpointed_frames_out);
+ let in_wal = (!frames_in_wal_out.is_null()).then(|| &mut *frames_in_wal_out);
+ let backfilled = (!checkpointed_frames_out.is_null()).then(|| &mut *checkpointed_frames_out);
451
let mut db = Sqlite3Db { inner: db };
452
match this.checkpoint(
453
&mut db,
0 commit comments