mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Run clippy
This commit is contained in:
@@ -257,9 +257,9 @@ pub mod deposit_methods {
|
|||||||
Latest,
|
Latest,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Into<u64> for Eth1Id {
|
impl From<Eth1Id> for u64 {
|
||||||
fn into(self) -> u64 {
|
fn from(val: Eth1Id) -> Self {
|
||||||
match self {
|
match val {
|
||||||
Eth1Id::Mainnet => 1,
|
Eth1Id::Mainnet => 1,
|
||||||
Eth1Id::Custom(id) => id,
|
Eth1Id::Custom(id) => id,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user