diff --git a/core/mvcc/database/tests.rs b/core/mvcc/database/tests.rs index e91dfd0cb..be3a29a5d 100644 --- a/core/mvcc/database/tests.rs +++ b/core/mvcc/database/tests.rs @@ -1285,7 +1285,7 @@ fn test_concurrent_writes() { println!("inserting row {write} from connection {conn_id}"); conn.current_statement = Some( conn.conn - .prepare(&format!("INSERT INTO test (x) VALUES ({write})")) + .prepare(format!("INSERT INTO test (x) VALUES ({write})")) .unwrap(), ); } diff --git a/core/vdbe/mod.rs b/core/vdbe/mod.rs index 20ab70584..39d526564 100644 --- a/core/vdbe/mod.rs +++ b/core/vdbe/mod.rs @@ -40,7 +40,7 @@ use crate::{ }, metrics::StatementMetrics, }, - IOExt, RefValue, + IOExt, RefValue, }; use crate::{ @@ -214,6 +214,7 @@ impl Bitfield { } #[derive(Debug)] +#[allow(clippy::large_enum_variant)] /// The commit state of the program. /// There are two states: /// - Ready: The program is ready to run the next instruction, or has shut down after @@ -565,10 +566,10 @@ impl Program { let state_machine = mv_store.commit_tx(*tx_id, pager.clone(), &conn).unwrap(); program_state.commit_state = CommitState::CommitingMvcc { state_machine }; } - let CommitState::CommitingMvcc { state_machine } = - &mut program_state.commit_state else { - panic!("invalid state for mvcc commit step") - }; + let CommitState::CommitingMvcc { state_machine } = &mut program_state.commit_state + else { + panic!("invalid state for mvcc commit step") + }; match self.step_end_mvcc_txn(state_machine, mv_store)? { IOResult::Done(_) => { assert!(state_machine.is_finalized());