From 9389122f95843c79ebc21667d7d1197b56e29715 Mon Sep 17 00:00:00 2001 From: Georgy Shepelev Date: Mon, 29 Jul 2024 11:07:33 +0400 Subject: [PATCH] add allow(dead_code) to suppress awkward warnings --- checkpoints-relayer/src/utils/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/checkpoints-relayer/src/utils/mod.rs b/checkpoints-relayer/src/utils/mod.rs index f2b2951c..31ccbb32 100644 --- a/checkpoints-relayer/src/utils/mod.rs +++ b/checkpoints-relayer/src/utils/mod.rs @@ -40,6 +40,7 @@ pub struct BeaconBlockHeaderData { pub header: SignedBeaconBlockHeader, } +#[allow(dead_code)] #[derive(Deserialize, Debug)] pub struct Bootstrap { #[serde(deserialize_with = "deserialize_header")] @@ -48,6 +49,7 @@ pub struct Bootstrap { pub current_sync_committee_branch: Vec, } +#[allow(dead_code)] #[derive(Deserialize, Debug)] pub struct BootstrapResponse { pub data: Bootstrap, @@ -114,6 +116,7 @@ impl fmt::Display for ErrorNotFound { impl Error for ErrorNotFound {} +#[allow(dead_code)] #[derive(Deserialize)] struct CodeResponse { code: u64, @@ -135,6 +138,7 @@ pub async fn get(request_builder: RequestBuilder) -> AnyRes } } +#[allow(dead_code)] pub async fn get_bootstrap( client: &Client, rpc_url: &str,