Skip to content

Commit

Permalink
Merge pull request #408 from ralexstokes/update-msrv
Browse files Browse the repository at this point in the history
Update msrv
  • Loading branch information
ralexstokes authored Oct 23, 2024
2 parents cf3c404 + b99754f commit 8fbd8a5
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 31 deletions.
2 changes: 1 addition & 1 deletion ethereum-consensus/src/networking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl<'de> Deserialize<'de> for PeerId {

struct PeerIdVisitor;

impl<'de> Visitor<'de> for PeerIdVisitor {
impl Visitor<'_> for PeerIdVisitor {
type Value = PeerId;

fn expecting(&self, f: &mut fmt::Formatter) -> fmt::Result {
Expand Down
6 changes: 2 additions & 4 deletions ethereum-consensus/src/types/beacon_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ pub enum BeaconBlockRef<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -646,7 +645,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BeaconBlockRef<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down Expand Up @@ -1265,7 +1264,6 @@ pub enum BeaconBlockRefMut<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -1282,7 +1280,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BeaconBlockRefMut<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down
6 changes: 2 additions & 4 deletions ethereum-consensus/src/types/beacon_block_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,6 @@ pub enum BeaconBlockBodyRef<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -780,7 +779,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BeaconBlockBodyRef<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down Expand Up @@ -1463,7 +1462,6 @@ pub enum BeaconBlockBodyRefMut<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -1480,7 +1478,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BeaconBlockBodyRefMut<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down
6 changes: 2 additions & 4 deletions ethereum-consensus/src/types/beacon_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,6 @@ pub enum BeaconStateRef<
),
}
impl<
'a,
const SLOTS_PER_HISTORICAL_ROOT: usize,
const HISTORICAL_ROOTS_LIMIT: usize,
const ETH1_DATA_VOTES_BOUND: usize,
Expand All @@ -1057,7 +1056,7 @@ impl<
const MAX_EXTRA_DATA_BYTES: usize,
>
BeaconStateRef<
'a,
'_,
SLOTS_PER_HISTORICAL_ROOT,
HISTORICAL_ROOTS_LIMIT,
ETH1_DATA_VOTES_BOUND,
Expand Down Expand Up @@ -1840,7 +1839,6 @@ pub enum BeaconStateRefMut<
),
}
impl<
'a,
const SLOTS_PER_HISTORICAL_ROOT: usize,
const HISTORICAL_ROOTS_LIMIT: usize,
const ETH1_DATA_VOTES_BOUND: usize,
Expand All @@ -1854,7 +1852,7 @@ impl<
const MAX_EXTRA_DATA_BYTES: usize,
>
BeaconStateRefMut<
'a,
'_,
SLOTS_PER_HISTORICAL_ROOT,
HISTORICAL_ROOTS_LIMIT,
ETH1_DATA_VOTES_BOUND,
Expand Down
6 changes: 2 additions & 4 deletions ethereum-consensus/src/types/blinded_beacon_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ pub enum BlindedBeaconBlockRef<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -445,7 +444,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BlindedBeaconBlockRef<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down Expand Up @@ -819,7 +818,6 @@ pub enum BlindedBeaconBlockRefMut<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -833,7 +831,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BlindedBeaconBlockRefMut<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down
6 changes: 2 additions & 4 deletions ethereum-consensus/src/types/blinded_beacon_block_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@ pub enum BlindedBeaconBlockBodyRef<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -542,7 +541,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BlindedBeaconBlockBodyRef<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down Expand Up @@ -961,7 +960,6 @@ pub enum BlindedBeaconBlockBodyRefMut<
),
}
impl<
'a,
const MAX_PROPOSER_SLASHINGS: usize,
const MAX_VALIDATORS_PER_COMMITTEE: usize,
const MAX_ATTESTER_SLASHINGS: usize,
Expand All @@ -975,7 +973,7 @@ impl<
const MAX_BLOB_COMMITMENTS_PER_BLOCK: usize,
>
BlindedBeaconBlockBodyRefMut<
'a,
'_,
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
MAX_ATTESTER_SLASHINGS,
Expand Down
6 changes: 2 additions & 4 deletions ethereum-consensus/src/types/execution_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,15 +476,14 @@ pub enum ExecutionPayloadRef<
),
}
impl<
'a,
const BYTES_PER_LOGS_BLOOM: usize,
const MAX_EXTRA_DATA_BYTES: usize,
const MAX_BYTES_PER_TRANSACTION: usize,
const MAX_TRANSACTIONS_PER_PAYLOAD: usize,
const MAX_WITHDRAWALS_PER_PAYLOAD: usize,
>
ExecutionPayloadRef<
'a,
'_,
BYTES_PER_LOGS_BLOOM,
MAX_EXTRA_DATA_BYTES,
MAX_BYTES_PER_TRANSACTION,
Expand Down Expand Up @@ -818,15 +817,14 @@ pub enum ExecutionPayloadRefMut<
),
}
impl<
'a,
const BYTES_PER_LOGS_BLOOM: usize,
const MAX_EXTRA_DATA_BYTES: usize,
const MAX_BYTES_PER_TRANSACTION: usize,
const MAX_TRANSACTIONS_PER_PAYLOAD: usize,
const MAX_WITHDRAWALS_PER_PAYLOAD: usize,
>
ExecutionPayloadRefMut<
'a,
'_,
BYTES_PER_LOGS_BLOOM,
MAX_EXTRA_DATA_BYTES,
MAX_BYTES_PER_TRANSACTION,
Expand Down
8 changes: 4 additions & 4 deletions ethereum-consensus/src/types/execution_payload_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ pub enum ExecutionPayloadHeaderRef<
Capella(&'a capella::ExecutionPayloadHeader<BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>),
Deneb(&'a deneb::ExecutionPayloadHeader<BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>),
}
impl<'a, const BYTES_PER_LOGS_BLOOM: usize, const MAX_EXTRA_DATA_BYTES: usize>
ExecutionPayloadHeaderRef<'a, BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>
impl<const BYTES_PER_LOGS_BLOOM: usize, const MAX_EXTRA_DATA_BYTES: usize>
ExecutionPayloadHeaderRef<'_, BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>
{
pub fn bellatrix(
&self,
Expand Down Expand Up @@ -548,8 +548,8 @@ pub enum ExecutionPayloadHeaderRefMut<
Capella(&'a mut capella::ExecutionPayloadHeader<BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>),
Deneb(&'a mut deneb::ExecutionPayloadHeader<BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>),
}
impl<'a, const BYTES_PER_LOGS_BLOOM: usize, const MAX_EXTRA_DATA_BYTES: usize>
ExecutionPayloadHeaderRefMut<'a, BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>
impl<const BYTES_PER_LOGS_BLOOM: usize, const MAX_EXTRA_DATA_BYTES: usize>
ExecutionPayloadHeaderRefMut<'_, BYTES_PER_LOGS_BLOOM, MAX_EXTRA_DATA_BYTES>
{
pub fn bellatrix(
&self,
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.76.0"
channel = "1.82.0"
2 changes: 1 addition & 1 deletion spec-gen/src/visitors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl<'a> ArgumentsEditor<'a> {
}
}

impl<'a> VisitMut for ArgumentsEditor<'a> {
impl VisitMut for ArgumentsEditor<'_> {
fn visit_angle_bracketed_generic_arguments_mut(
&mut self,
i: &mut syn::AngleBracketedGenericArguments,
Expand Down

0 comments on commit 8fbd8a5

Please sign in to comment.