Skip to content

Commit 6a2f46e

Browse files
committed
Apply Clippy lint
1 parent b9f2668 commit 6a2f46e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

searcher-api-types/src/beaver.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//! RPC types that are supported by Beaverbuild
2-
use alloy_primitives::{
3-
hex::{self, FromHex},
4-
Address, BlockNumber, Bytes, TxHash,
5-
};
2+
use alloy_primitives::{hex::FromHex, Address, BlockNumber, Bytes, TxHash};
63
use serde::ser::{Serialize, SerializeStruct, Serializer};
74

85
/// Bundle as recognised by Beaverbuild
@@ -38,7 +35,7 @@ impl BeaverBundle {
3835
Ok(Self {
3936
transactions: txs
4037
.iter()
41-
.map(|hex_string| Bytes::from_hex(hex_string))
38+
.map(Bytes::from_hex)
4239
.collect::<Result<Vec<Bytes>, _>>()?,
4340
block_number,
4441
..Self::default()

0 commit comments

Comments
 (0)