Skip to content

Commit 4e10c0e

Browse files
committed
✨ Resolve lints + update toolchain
1 parent 016eef0 commit 4e10c0e

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly"
2+
channel = "1.86"

src/methods/trident_svm_metrics.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ use crate::trident_svm::TridentSVM;
33

44
impl TridentSVM {
55
pub fn increment_transaction_execution(&mut self, transaction: String) {
6-
match &mut self.fuzz_stats {
7-
Some(shmem) => {
8-
let stats = unsafe { &mut *(shmem.as_ptr() as *mut FuzzStats) };
9-
stats.increment_executions(&transaction);
10-
}
11-
None => {}
6+
if let Some(shmem) = &mut self.fuzz_stats {
7+
let stats = unsafe { &mut *(shmem.as_ptr() as *mut FuzzStats) };
8+
stats.increment_executions(&transaction);
129
}
1310
}
1411
pub fn increment_transaction_success(&mut self, transaction: String) {

src/methods/trident_svm_transactions.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ impl TridentSVM {
2323
&mut self,
2424
transaction: Transaction,
2525
) -> LoadAndExecuteSanitizedTransactionsOutput {
26-
let mut tx_processing_environment = TransactionProcessingEnvironment::default();
27-
28-
tx_processing_environment.feature_set = self.feature_set.clone();
26+
let tx_processing_environment = TransactionProcessingEnvironment::<'_> {
27+
feature_set: self.feature_set.clone(),
28+
..Default::default()
29+
};
2930

3031
let tx_processing_config = TransactionProcessingConfig {
3132
compute_budget: Some(ComputeBudget::default()),

0 commit comments

Comments
 (0)