Skip to content

Commit

Permalink
chore(exe/cache): remove marker
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-melnychuk committed Nov 4, 2024
1 parent 72c5cdb commit c767f51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/exe/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use ethers::types::U256;
use lru::LruCache;
use starknet_api::{core::ContractAddress, state::StorageKey};
use starknet_types_core::felt::Felt as StarkFelt;
use std::marker::PhantomData;
use std::num::NonZeroUsize;
use std::sync::{LazyLock, Mutex};

Expand Down Expand Up @@ -116,12 +115,11 @@ pub trait HasBlockHash {

pub struct CachedState<T: StateReader + BlockifierState + HasBlockHash> {
inner: T,
_marker: PhantomData<T>,
}

impl<T: StateReader + BlockifierState + HasBlockHash> CachedState<T> {
pub fn new(inner: T) -> Self {
Self { inner, _marker: PhantomData }
Self { inner }
}
}

Expand Down

0 comments on commit c767f51

Please sign in to comment.