From 8a19c63bfa2b54abfd3e2befe25620a836e42236 Mon Sep 17 00:00:00 2001 From: Toralf Wittner Date: Fri, 25 Jan 2019 11:05:17 +0100 Subject: [PATCH] Use with `self` prefix. --- protocols/noise/src/lib.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/protocols/noise/src/lib.rs b/protocols/noise/src/lib.rs index 4e52976cb33f..7256f381044d 100644 --- a/protocols/noise/src/lib.rs +++ b/protocols/noise/src/lib.rs @@ -27,18 +27,16 @@ pub mod ik; pub mod ix; pub mod xx; -pub use error::NoiseError; -pub use io::NoiseOutput; -pub use keys::{Curve25519, PublicKey, SecretKey, Keypair}; +pub use self::error::NoiseError; +pub use self::io::NoiseOutput; +pub use self::keys::{Curve25519, PublicKey, SecretKey, Keypair}; -use ik::IK; -use ix::IX; use libp2p_core::{UpgradeInfo, InboundUpgrade, OutboundUpgrade}; use lazy_static::lazy_static; +use self::{ik::IK, ix::IX, xx::XX}; use snow; use std::sync::Arc; use tokio_io::{AsyncRead, AsyncWrite}; -use xx::XX; lazy_static! { static ref PARAMS_IK: snow::params::NoiseParams = "Noise_IK_25519_ChaChaPoly_SHA256"