diff --git a/core/src/identity/rsa.rs b/core/src/identity/rsa.rs index d47bee87..1e20f72d 100644 --- a/core/src/identity/rsa.rs +++ b/core/src/identity/rsa.rs @@ -27,7 +27,6 @@ use ring::rand::SystemRandom; use ring::signature::{self, RsaKeyPair, RSA_PKCS1_SHA256, RSA_PKCS1_2048_8192_SHA256}; use ring::signature::KeyPair; use std::sync::Arc; -use untrusted::Input; use zeroize::Zeroize; /// An RSA keypair. diff --git a/core/src/nodes/listeners.rs b/core/src/nodes/listeners.rs index effcea65..f9c0f464 100644 --- a/core/src/nodes/listeners.rs +++ b/core/src/nodes/listeners.rs @@ -408,7 +408,7 @@ mod tests { .map_err(|(err, _)| err); let mut runtime = Runtime::new().unwrap(); - runtime.block_on(future).unwrap(); + let _ = runtime.block_on(future).unwrap(); } #[test] diff --git a/core/src/peer_id.rs b/core/src/peer_id.rs index dd60c43d..d9dc34e1 100644 --- a/core/src/peer_id.rs +++ b/core/src/peer_id.rs @@ -219,7 +219,7 @@ impl Into for PeerId { quick_error! { #[derive(Debug)] pub enum ParseError { - B58(e: bs58::decode::DecodeError) { + B58(e: bs58::decode::Error) { display("base-58 decode error: {}", e) cause(e) from() diff --git a/misc/multiaddr/src/errors.rs b/misc/multiaddr/src/errors.rs index 4330226f..26363583 100644 --- a/misc/multiaddr/src/errors.rs +++ b/misc/multiaddr/src/errors.rs @@ -57,8 +57,8 @@ impl From for Error { } } -impl From for Error { - fn from(err: bs58::decode::DecodeError) -> Error { +impl From for Error { + fn from(err: bs58::decode::Error) -> Error { Error::ParsingError(err.into()) } } diff --git a/protocols/secio/src/exchange/impl_ring.rs b/protocols/secio/src/exchange/impl_ring.rs index b95219fc..04acf866 100644 --- a/protocols/secio/src/exchange/impl_ring.rs +++ b/protocols/secio/src/exchange/impl_ring.rs @@ -25,7 +25,6 @@ use futures::{future, prelude::*}; use log::debug; use ring::agreement as ring_agreement; use ring::rand as ring_rand; -use untrusted::Input as UntrustedInput; impl Into<&'static ring_agreement::Algorithm> for KeyAgreement { #[inline]