Skip to content

Commit 4bba46d

Browse files
committed
fix: lints
1 parent df9d787 commit 4bba46d

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

crates/codec/src/decoding/batch.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
use crate::{BlockContext, L2Block, decoding::payload::PayloadData};
2-
use alloy_primitives::{B256, bytes::BufMut, keccak256};
1+
use crate::{decoding::payload::PayloadData, BlockContext, L2Block};
2+
3+
use alloy_primitives::{bytes::BufMut, keccak256, B256};
34
use scroll_alloy_consensus::TxL1Message;
45

56
/// The deserialized batch data.
@@ -107,7 +108,7 @@ fn hash_chunk(
107108
mod tests {
108109
use crate::decoding::{test_utils::read_to_bytes, v0::decode_v0, v1::decode_v1};
109110

110-
use alloy_primitives::{U256, address, b256, bytes};
111+
use alloy_primitives::{address, b256, bytes, U256};
111112
use scroll_alloy_consensus::TxL1Message;
112113

113114
#[test]

crates/codec/src/decoding/v0/batch_header.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use crate::{from_be_bytes_slice_and_advance_buf, from_slice_and_advance_buf};
22

33
use alloy_primitives::{
4-
B256, U256,
54
bytes::{Buf, BufMut},
6-
keccak256,
5+
keccak256, B256, U256,
76
};
87

98
/// The batch header for V0.
@@ -112,7 +111,7 @@ impl BatchHeaderV0 {
112111
mod tests {
113112
use crate::decoding::{test_utils::read_to_bytes, v0::BatchHeaderV0};
114113

115-
use alloy_primitives::{U256, b256};
114+
use alloy_primitives::{b256, U256};
116115
use alloy_sol_types::SolCall;
117116
use scroll_l1::abi::calls::commitBatchCall;
118117

crates/codec/src/decoding/v1/batch_header.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use crate::{from_be_bytes_slice_and_advance_buf, from_slice_and_advance_buf};
22

33
use alloy_primitives::{
4-
B256, U256,
54
bytes::{Buf, BufMut},
6-
keccak256,
5+
keccak256, B256, U256,
76
};
87

98
/// The batch header for V1.

crates/codec/src/decoding/v3/batch_header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{from_be_bytes_slice_and_advance_buf, from_slice_and_advance_buf};
22

3-
use alloy_primitives::{B256, bytes::BufMut, keccak256};
3+
use alloy_primitives::{bytes::BufMut, keccak256, B256};
44

55
/// The batch header for V3.
66
#[derive(Debug, Default, Clone, PartialEq, Eq)]

crates/codec/src/decoding/v7/batch_header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use alloy_primitives::{B256, bytes::BufMut, keccak256};
1+
use alloy_primitives::{bytes::BufMut, keccak256, B256};
22

33
/// The batch header for V7.
44
#[derive(Debug, Default, Clone, PartialEq, Eq)]

0 commit comments

Comments
 (0)