Skip to content

Commit

Permalink
chore: allow missing const (#11750)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Oct 15, 2024
1 parent 04f5b53 commit 77a382f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/net/peers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ pub enum AnyNode {

impl AnyNode {
/// Returns the peer id of the node.
#[allow(clippy::missing_const_for_fn)]
pub fn peer_id(&self) -> PeerId {
match self {
Self::NodeRecord(record) => record.id,
Expand All @@ -127,6 +128,7 @@ impl AnyNode {
}

/// Returns the full node record if available.
#[allow(clippy::missing_const_for_fn)]
pub fn node_record(&self) -> Option<NodeRecord> {
match self {
Self::NodeRecord(record) => Some(*record),
Expand Down

0 comments on commit 77a382f

Please sign in to comment.