diff --git a/libsawtooth/src/journal/commit_store.rs b/libsawtooth/src/journal/commit_store.rs index f7fae1b6e..303efd92f 100644 --- a/libsawtooth/src/journal/commit_store.rs +++ b/libsawtooth/src/journal/commit_store.rs @@ -324,7 +324,7 @@ impl CommitStore { .batches() .iter() .find(|batch| { - !batch + batch .transactions() .iter() .any(|txn| txn.header_signature() == transaction_id) diff --git a/libsawtooth/src/transact/database/lmdb.rs b/libsawtooth/src/transact/database/lmdb.rs index 49a347d63..6bcfffb9a 100644 --- a/libsawtooth/src/transact/database/lmdb.rs +++ b/libsawtooth/src/transact/database/lmdb.rs @@ -533,9 +533,9 @@ mod tests { }) } - fn run_test(test: T) -> () + fn run_test(test: T) where - T: FnOnce(&str) -> () + panic::UnwindSafe, + T: FnOnce(&str) + panic::UnwindSafe, { let dbpath = temp_db_path();