Skip to content

Commit 26a62fb

Browse files
committed
Fix beta compiler warnings
1 parent cf60080 commit 26a62fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

beacon_node/http_api/src/publish_attestations.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ use tokio::sync::{
5252
};
5353
use types::Attestation;
5454

55+
// Error variants are only used in `Debug` and considered `dead_code` by the compiler.
5556
#[derive(Debug)]
5657
enum Error {
5758
Validation(AttestationError),
5859
Publication,
59-
ForkChoice(BeaconChainError),
60-
AggregationPool(AttestationError),
60+
ForkChoice(#[allow(dead_code)] BeaconChainError),
61+
AggregationPool(#[allow(dead_code)] AttestationError),
6162
ReprocessDisabled,
6263
ReprocessFull,
6364
ReprocessTimeout,

0 commit comments

Comments
 (0)