Skip to content

Commit 8f4de6f

Browse files
committed
clippy
1 parent 5bc7318 commit 8f4de6f

File tree

1 file changed

+1
-1
lines changed
  • iroh-pkarr-node-discovery/src

1 file changed

+1
-1
lines changed

iroh-pkarr-node-discovery/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl<'a> Builder<'a> {
8080

8181
/// Build the discovery mechanism.
8282
pub fn build(self) -> PkarrNodeDiscovery {
83-
let client = self.client.unwrap_or_else(PkarrClient::new);
83+
let client = self.client.unwrap_or_default();
8484
PkarrNodeDiscovery::new(client, self.secret_key)
8585
}
8686
}

0 commit comments

Comments
 (0)