From 176e1060789dbf2a8167432e131ec5e29c099234 Mon Sep 17 00:00:00 2001 From: mikhailUshakoff Date: Fri, 20 Sep 2024 20:51:25 +0200 Subject: [PATCH] Remove unused #[allow(dead_code)] attributes --- Node/src/ethereum_l1/consensus_layer.rs | 1 - Node/src/ethereum_l1/slot_clock.rs | 1 - Node/src/node/commit.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Node/src/ethereum_l1/consensus_layer.rs b/Node/src/ethereum_l1/consensus_layer.rs index a983177..ca9a36b 100644 --- a/Node/src/ethereum_l1/consensus_layer.rs +++ b/Node/src/ethereum_l1/consensus_layer.rs @@ -1,4 +1,3 @@ -#![allow(dead_code)] // TODO: remove use crate::utils::types::*; use anyhow::Error; use beacon_api_client::{ diff --git a/Node/src/ethereum_l1/slot_clock.rs b/Node/src/ethereum_l1/slot_clock.rs index bdc0ceb..3c55748 100644 --- a/Node/src/ethereum_l1/slot_clock.rs +++ b/Node/src/ethereum_l1/slot_clock.rs @@ -1,4 +1,3 @@ -#![allow(dead_code)] // TODO remove for production use crate::utils::types::*; use anyhow::Error; use std::time::{Duration, SystemTime, UNIX_EPOCH}; diff --git a/Node/src/node/commit.rs b/Node/src/node/commit.rs index 77a319b..d03c7dc 100644 --- a/Node/src/node/commit.rs +++ b/Node/src/node/commit.rs @@ -1,4 +1,3 @@ -#![allow(dead_code)] // TODO: remove use crate::utils::types::*; use crate::{taiko::l2_tx_lists::RPCReplyL2TxLists, utils::bytes_tools::hash_bytes_with_keccak}; use alloy_rlp::{Encodable, RlpDecodable, RlpEncodable}; @@ -50,6 +49,7 @@ impl L2TxListsCommit { Ok(hash_bytes_with_keccak(&buffer.as_slice())) } + #[allow(dead_code)] pub fn sign(&self, private_key: &str) -> Result { let secp = Secp256k1::new(); let secret_key = SecretKey::from_slice(&hex::decode(private_key)?)?;