ignoring pedantic clippy lints from ephemera

This commit is contained in:
Jędrzej Stuczyński
2024-01-02 10:09:03 +00:00
parent 3816142479
commit 7232fd83d1
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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<Hash, Block>,
+2
View File
@@ -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,