Skip to content

Commit 3295afc

Browse files
committed
rustmft
1 parent 6ea3a24 commit 3295afc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

crates/eips/src/eip2930.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
//! [EIP-2930]: https://eips.ethereum.org/EIPS/eip-2930
44
55
#[cfg(not(feature = "std"))]
6-
use alloc::{
7-
vec::Vec,
8-
string::String
9-
};
6+
use alloc::{string::String, vec::Vec};
107

118
use alloy_primitives::{Address, B256, U256};
129
use alloy_rlp::{RlpDecodable, RlpDecodableWrapper, RlpEncodable, RlpEncodableWrapper};
@@ -27,7 +24,7 @@ pub struct AccessListItem {
2724
impl AccessListItem {
2825
/// Calculates a heuristic for the in-memory size of the [AccessListItem].
2926
#[inline]
30-
pub fn size(&self) -> usize {
27+
pub const fn size(&self) -> usize {
3128
mem::size_of::<Address>() + self.storage_keys.capacity() * mem::size_of::<B256>()
3229
}
3330
}

0 commit comments

Comments
 (0)