diff --git a/transports/noise/src/lib.rs b/transports/noise/src/lib.rs index d793e1983bb..c1b55d2076b 100644 --- a/transports/noise/src/lib.rs +++ b/transports/noise/src/lib.rs @@ -390,12 +390,12 @@ pub struct NoiseAuthenticated { config: NoiseConfig, } -impl NoiseAuthenticated { +impl NoiseAuthenticated { /// Create a new [`NoiseAuthenticated`] for the `XX` handshake pattern using X25519 DH keys. /// /// For now, this is the only combination that is guaranteed to be compatible with other libp2p implementations. pub fn xx(id_keys: &identity::Keypair) -> Result { - let dh_keys = Keypair::::new(); + let dh_keys = Keypair::::new(); let noise_keys = dh_keys.into_authentic(id_keys)?; let config = NoiseConfig::xx(noise_keys);