Skip to content

Commit 12b10fc

Browse files
committed
chore: clippy
1 parent 43eb7c2 commit 12b10fc

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

crates/storage/src/hot/conformance.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn test_header_roundtrip<T: HotKv>(hot_kv: &T) {
4242

4343
// Write header
4444
{
45-
let mut writer = hot_kv.writer().unwrap();
45+
let writer = hot_kv.writer().unwrap();
4646
writer.put_header(&sealed).unwrap();
4747
writer.commit().unwrap();
4848
}
@@ -79,7 +79,7 @@ fn test_account_roundtrip<T: HotKv>(hot_kv: &T) {
7979

8080
// Write account
8181
{
82-
let mut writer = hot_kv.writer().unwrap();
82+
let writer = hot_kv.writer().unwrap();
8383
writer.put_account(&addr, &account).unwrap();
8484
writer.commit().unwrap();
8585
}
@@ -103,7 +103,7 @@ fn test_storage_roundtrip<T: HotKv>(hot_kv: &T) {
103103

104104
// Write storage
105105
{
106-
let mut writer = hot_kv.writer().unwrap();
106+
let writer = hot_kv.writer().unwrap();
107107
writer.put_storage(&addr, &slot, &value).unwrap();
108108
writer.commit().unwrap();
109109
}
@@ -135,7 +135,7 @@ fn test_bytecode_roundtrip<T: HotKv>(hot_kv: &T) {
135135

136136
// Write bytecode
137137
{
138-
let mut writer = hot_kv.writer().unwrap();
138+
let writer = hot_kv.writer().unwrap();
139139
writer.put_bytecode(&code_hash, &bytecode).unwrap();
140140
writer.commit().unwrap();
141141
}
@@ -156,7 +156,7 @@ fn test_account_history<T: HotKv>(hot_kv: &T) {
156156

157157
// Write account history
158158
{
159-
let mut writer = hot_kv.writer().unwrap();
159+
let writer = hot_kv.writer().unwrap();
160160
writer.write_account_history(&addr, latest_height, &touched_blocks).unwrap();
161161
writer.commit().unwrap();
162162
}
@@ -180,7 +180,7 @@ fn test_storage_history<T: HotKv>(hot_kv: &T) {
180180

181181
// Write storage history
182182
{
183-
let mut writer = hot_kv.writer().unwrap();
183+
let writer = hot_kv.writer().unwrap();
184184
writer.write_storage_history(&addr, slot, highest_block, &touched_blocks).unwrap();
185185
writer.commit().unwrap();
186186
}
@@ -203,7 +203,7 @@ fn test_account_changes<T: HotKv>(hot_kv: &T) {
203203

204204
// Write account change
205205
{
206-
let mut writer = hot_kv.writer().unwrap();
206+
let writer = hot_kv.writer().unwrap();
207207
writer.write_account_prestate(block_number, addr, &pre_state).unwrap();
208208
writer.commit().unwrap();
209209
}
@@ -230,7 +230,7 @@ fn test_storage_changes<T: HotKv>(hot_kv: &T) {
230230

231231
// Write storage change
232232
{
233-
let mut writer = hot_kv.writer().unwrap();
233+
let writer = hot_kv.writer().unwrap();
234234
writer.write_storage_prestate(block_number, addr, &slot, &pre_value).unwrap();
235235
writer.commit().unwrap();
236236
}
@@ -322,7 +322,7 @@ fn make_header(number: u64, parent_hash: B256) -> SealedHeader {
322322
// let shard_key = u64::MAX;
323323

324324
// {
325-
// let mut writer = hot_kv.writer().unwrap();
325+
// let writer = hot_kv.writer().unwrap();
326326

327327
// // Block 1: Create addr1 with nonce=1, balance=100
328328
// writer.put_header(&headers[0]).unwrap();
@@ -406,7 +406,7 @@ fn make_header(number: u64, parent_hash: B256) -> SealedHeader {
406406

407407
// // ========== Phase 2: Unwind 2 blocks (to block 3) ==========
408408
// {
409-
// let mut writer = hot_kv.writer().unwrap();
409+
// let writer = hot_kv.writer().unwrap();
410410
// let unwound = writer.unwind_to(3).unwrap();
411411
// assert_eq!(unwound, 2);
412412
// writer.commit().unwrap();
@@ -439,7 +439,7 @@ fn make_header(number: u64, parent_hash: B256) -> SealedHeader {
439439
// let header5_new = make_header(5, header4_new.hash());
440440

441441
// {
442-
// let mut writer = hot_kv.writer().unwrap();
442+
// let writer = hot_kv.writer().unwrap();
443443

444444
// // Block 4 (new): Different state changes
445445
// writer.put_header(&header4_new).unwrap();

0 commit comments

Comments
 (0)