fix compilation warnings (#11492)

This commit is contained in:
Andronik Ordian 2020-02-14 17:04:19 +01:00 committed by GitHub
parent 452aeec0bb
commit ea9322f9c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 7 deletions

View File

@ -57,7 +57,6 @@ impl BrainPrefix {
#[cfg(test)]
mod tests {
use BrainPrefix;
use parity_crypto::publickey::Generator;
#[test]
fn prefix_generator() {

View File

@ -42,7 +42,6 @@ impl Prefix {
#[cfg(test)]
mod tests {
use Prefix;
use parity_crypto::publickey::Generator;
#[test]
fn prefix_generator() {

View File

@ -200,7 +200,7 @@ impl SafeAccount {
#[cfg(test)]
mod tests {
use crypto::publickey::{Generator, Random, verify_public, Message};
use crypto::publickey::{Generator, Random, verify_public};
use super::SafeAccount;
#[test]

View File

@ -516,10 +516,10 @@ fn ipv4_special_purpose() {
#[test]
fn ipv4_benchmarking() {
assert!(!Ipv4Addr::new(198, 17, 255, 255).is_benchmarking());
assert!(Ipv4Addr::new(198, 18, 0, 0).is_benchmarking());
assert!(Ipv4Addr::new(198, 19, 255, 255).is_benchmarking());
assert!(!Ipv4Addr::new(198, 20, 0, 0).is_benchmarking());
assert!(!SocketAddrExt::is_benchmarking(&Ipv4Addr::new(198, 17, 255, 255)));
assert!(SocketAddrExt::is_benchmarking(&Ipv4Addr::new(198, 18, 0, 0)));
assert!(SocketAddrExt::is_benchmarking(&Ipv4Addr::new(198, 19, 255, 255)));
assert!(!SocketAddrExt::is_benchmarking(&Ipv4Addr::new(198, 20, 0, 0)));
}
#[test]