From ecfda507e97d2b6ce2f1cccb567bc1615c5b8d80 Mon Sep 17 00:00:00 2001 From: David Estes Date: Fri, 6 Dec 2024 11:48:40 -0700 Subject: [PATCH] chore: clippy lint --- peer-svc/src/tests/peer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer-svc/src/tests/peer.rs b/peer-svc/src/tests/peer.rs index 36994e00..18cd0f04 100644 --- a/peer-svc/src/tests/peer.rs +++ b/peer-svc/src/tests/peer.rs @@ -41,7 +41,7 @@ pub(crate) fn peer_key_builder() -> Builder { // Generate an event for the same network,model,controller,stream // The event and height are random when when its None. -pub(crate) fn random_peer_key<'a>(expiration: Option) -> PeerKey { +pub(crate) fn random_peer_key(expiration: Option) -> PeerKey { peer_key_builder() .with_expiration(expiration.unwrap_or_else(|| thread_rng().gen())) .with_id(&NodeKey::random())