From 208bf1c2323e967c98d9f155a23b836ec823f474 Mon Sep 17 00:00:00 2001 From: dospore Date: Fri, 5 Jul 2024 16:14:51 +1000 Subject: [PATCH] Run clippy --- beacon_node/execution_layer/src/engine_api/http.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_node/execution_layer/src/engine_api/http.rs b/beacon_node/execution_layer/src/engine_api/http.rs index ef65119414..4d7f0d787f 100644 --- a/beacon_node/execution_layer/src/engine_api/http.rs +++ b/beacon_node/execution_layer/src/engine_api/http.rs @@ -257,9 +257,9 @@ pub mod deposit_methods { Latest, } - impl Into for Eth1Id { - fn into(self) -> u64 { - match self { + impl From for u64 { + fn from(val: Eth1Id) -> Self { + match val { Eth1Id::Mainnet => 1, Eth1Id::Custom(id) => id, }