Skip to content

Commit ac155d6

Browse files
authored
build: bump Rust to v1.76 (#4941)
1 parent c7a20c1 commit ac155d6

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

.changeset/slimy-weeks-juggle.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomicfoundation/edr": minor
3+
---
4+
5+
Bump Rust to v1.76

crates/edr_evm/src/collections.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mod shared_map;
22

3-
pub use shared_map::{SharedMap, SharedMapEntry};
3+
pub use shared_map::SharedMap;

crates/edr_napi/src/provider/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl TryFrom<ProviderConfig> for edr_provider::ProviderConfig {
212212
spec_id,
213213
}| {
214214
let block_number = block_number.try_cast()?;
215-
let spec_id = spec_id.try_into()?;
215+
let spec_id = spec_id.into();
216216

217217
Ok((block_number, spec_id))
218218
},
@@ -246,7 +246,7 @@ impl TryFrom<ProviderConfig> for edr_provider::ProviderConfig {
246246
coinbase: value.coinbase.try_cast()?,
247247
fork: value.fork.map(TryInto::try_into).transpose()?,
248248
genesis_accounts: HashMap::new(),
249-
hardfork: value.hardfork.try_into()?,
249+
hardfork: value.hardfork.into(),
250250
initial_base_fee_per_gas: value
251251
.initial_base_fee_per_gas
252252
.map(TryCast::try_cast)

crates/edr_provider/src/pending.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use edr_evm::{
1717
///
1818
/// WORKAROUND: This struct needs to implement all sub-traits of
1919
/// [`SyncBlockchain`] because we cannot upcast the trait at its usage site
20-
/// <https://github.com/NomicFoundation/edr/issues/244>
20+
/// <https://github.com/NomicFoundation/edr/issues/284>
2121
#[derive(Debug)]
2222
pub(crate) struct BlockchainWithPending<'blockchain> {
2323
blockchain: &'blockchain dyn SyncBlockchain<BlockchainError, StateError>,

crates/edr_provider/src/requests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use ::serde::{
1313
de::{self, MapAccess, SeqAccess, Visitor},
1414
Deserialize, Deserializer, Serialize,
1515
};
16-
pub use edr_eth::remote::client::Request as RpcRequest;
1716

1817
pub use crate::requests::{
1918
methods::{MethodInvocation, OneUsizeOrTwo, U64OrUsize},

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.73
1+
1.76

0 commit comments

Comments
 (0)