From 7232fd83d1759c9886bc4c3888cd32fb8a936496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Tue, 2 Jan 2024 10:09:03 +0000 Subject: [PATCH] ignoring pedantic clippy lints from ephemera --- ephemera/src/block/manager.rs | 1 + ephemera/src/network/mod.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ephemera/src/block/manager.rs b/ephemera/src/block/manager.rs index c125fed228..a0538479db 100644 --- a/ephemera/src/block/manager.rs +++ b/ephemera/src/block/manager.rs @@ -43,6 +43,7 @@ pub(crate) enum BlockManagerError { BlockManager(#[from] anyhow::Error), } +#[allow(clippy::struct_field_names)] // this should get resolved properly at some point, but not now... /// It helps to use atomic state management for new blocks. pub(crate) struct BlockChainState { pub(crate) last_blocks: LruCache, diff --git a/ephemera/src/network/mod.rs b/ephemera/src/network/mod.rs index 205e147903..ece4db4e67 100644 --- a/ephemera/src/network/mod.rs +++ b/ephemera/src/network/mod.rs @@ -102,6 +102,8 @@ pub(crate) struct Peer { /// assert_eq!(peer_id, public_key.peer_id()); /// /// ``` + #[allow(clippy::struct_field_names)] + // this should get resolved properly at some point, but not now... pub peer_id: PeerId, /// The peer's public key. It matches PeerId. pub public_key: PublicKey,