diff --git a/src/handshakestate.rs b/src/handshakestate.rs index 15ff23e5..e4035bbb 100644 --- a/src/handshakestate.rs +++ b/src/handshakestate.rs @@ -3,7 +3,7 @@ use crate::utils::Toggle; use crate::types::{Dh, Hash, Random}; use crate::cipherstate::{CipherState, CipherStates}; #[cfg(feature = "nightly")] use std::convert::TryFrom; -#[cfg(not(feature = "nightly"))] use utils::TryFrom; +#[cfg(not(feature = "nightly"))] use crate::utils::TryFrom; use crate::symmetricstate::SymmetricState; use crate::params::{HandshakeTokens, MessagePatterns, NoiseParams, Token}; use crate::error::{Error, InitStage, StateProblem}; diff --git a/src/params/mod.rs b/src/params/mod.rs index 50069008..ba7b692e 100644 --- a/src/params/mod.rs +++ b/src/params/mod.rs @@ -7,7 +7,7 @@ use std::convert::TryFrom; #[allow(unused_imports)] #[cfg(not(feature = "nightly"))] -use utils::TryFrom; +use crate::utils::TryFrom; use crate::error::{Error, PatternProblem}; use std::str::FromStr; diff --git a/src/params/patterns.rs b/src/params/patterns.rs index cdc0e1cb..b64b4908 100644 --- a/src/params/patterns.rs +++ b/src/params/patterns.rs @@ -1,5 +1,5 @@ #[cfg(feature = "nightly")] use std::convert::{TryFrom}; -#[cfg(not(feature = "nightly"))] use utils::{TryFrom}; +#[cfg(not(feature = "nightly"))] use crate::utils::{TryFrom}; use crate::error::{Error, PatternProblem}; use std::str::FromStr; use smallvec::SmallVec; diff --git a/src/session.rs b/src/session.rs index 4cd923e6..bdb58fd8 100644 --- a/src/session.rs +++ b/src/session.rs @@ -1,7 +1,8 @@ use crate::error::{Error, StateProblem}; use crate::handshakestate::HandshakeState; #[cfg(feature = "nightly")] use std::convert::{TryFrom, TryInto}; -#[cfg(not(feature = "nightly"))] use utils::{TryFrom, TryInto}; +#[allow(unused_imports)] +#[cfg(not(feature = "nightly"))] use crate::utils::{TryFrom, TryInto}; use crate::transportstate::TransportState; use crate::stateless_transportstate::StatelessTransportState;