Skip to content

Commit

Permalink
chore: format with latest nightly version
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Sep 23, 2024
1 parent 9aa38c4 commit 77152ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion crates/edr_evm/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ impl ChainSpec for L1ChainSpec {
}

impl RpcSpec for L1ChainSpec {
type RpcBlock<Data> = <EthRpcSpec as RpcSpec>::RpcBlock<Data> where Data: Default + DeserializeOwned + Serialize;
type RpcBlock<Data>
= <EthRpcSpec as RpcSpec>::RpcBlock<Data>
where
Data: Default + DeserializeOwned + Serialize;
type RpcTransaction = <EthRpcSpec as RpcSpec>::RpcTransaction;
}
7 changes: 4 additions & 3 deletions crates/edr_rpc_client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,10 @@ mod tests {
}

impl RpcMethod for TestMethod {
type Cacheable<'method> = CachedTestMethod<'method>
where
Self: 'method;
type Cacheable<'method>
= CachedTestMethod<'method>
where
Self: 'method;

fn block_number_request() -> Self {
Self::BlockNumber(())
Expand Down
5 changes: 4 additions & 1 deletion crates/edr_rpc_eth/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ pub trait GetBlockNumber {
pub struct EthRpcSpec;

impl RpcSpec for EthRpcSpec {
type RpcBlock<Data> = crate::block::Block<Data> where Data: Default + DeserializeOwned + Serialize;
type RpcBlock<Data>
= crate::block::Block<Data>
where
Data: Default + DeserializeOwned + Serialize;
type RpcTransaction = crate::transaction::Transaction;
}

0 comments on commit 77152ff

Please sign in to comment.