Skip to content

Commit

Permalink
add allow(dead_code) to suppress awkward warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gshep committed Jul 29, 2024
1 parent 56e0465 commit 9389122
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions checkpoints-relayer/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub struct BeaconBlockHeaderData {
pub header: SignedBeaconBlockHeader,
}

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct Bootstrap {
#[serde(deserialize_with = "deserialize_header")]
Expand All @@ -48,6 +49,7 @@ pub struct Bootstrap {
pub current_sync_committee_branch: Vec<Bytes32>,
}

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct BootstrapResponse {
pub data: Bootstrap,
Expand Down Expand Up @@ -114,6 +116,7 @@ impl fmt::Display for ErrorNotFound {

impl Error for ErrorNotFound {}

#[allow(dead_code)]
#[derive(Deserialize)]
struct CodeResponse {
code: u64,
Expand All @@ -135,6 +138,7 @@ pub async fn get<R: DeserializeOwned>(request_builder: RequestBuilder) -> AnyRes
}
}

#[allow(dead_code)]
pub async fn get_bootstrap(
client: &Client,
rpc_url: &str,
Expand Down

0 comments on commit 9389122

Please sign in to comment.