Remove clippy (#19793)

This commit is contained in:
sakridge 2021-09-14 06:08:28 +03:00 committed by GitHub
parent 79ade5ec68
commit 44c8b1bca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -143,10 +143,7 @@ pub fn discover(
Vec<ContactInfo>, // all gossip peers
Vec<ContactInfo>, // tvu peers (validators)
)> {
let keypair = {
#[allow(clippy::redundant_closure)]
keypair.unwrap_or_else(|| Keypair::new())
};
let keypair = keypair.unwrap_or_else(Keypair::new);
let exit = Arc::new(AtomicBool::new(false));
let (gossip_service, ip_echo, spy_ref) = make_gossip_node(
keypair,