Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Warning Cleanup #1278

Merged
merged 9 commits into from
Oct 24, 2019
1 change: 0 additions & 1 deletion core/src/identity/rsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion core/src/nodes/listeners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion core/src/peer_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl Into<multihash::Multihash> 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()
Expand Down
4 changes: 2 additions & 2 deletions misc/multiaddr/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ impl From<multihash::DecodeOwnedError> for Error {
}
}

impl From<bs58::decode::DecodeError> for Error {
fn from(err: bs58::decode::DecodeError) -> Error {
impl From<bs58::decode::Error> for Error {
fn from(err: bs58::decode::Error) -> Error {
Error::ParsingError(err.into())
}
}
Expand Down
1 change: 0 additions & 1 deletion protocols/secio/src/exchange/impl_ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down