Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion accounts/ethkey/src/brain_prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ impl BrainPrefix {
#[cfg(test)]
mod tests {
use BrainPrefix;
use parity_crypto::publickey::Generator;

#[test]
fn prefix_generator() {
Expand Down
1 change: 0 additions & 1 deletion accounts/ethkey/src/prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ impl Prefix {
#[cfg(test)]
mod tests {
use Prefix;
use parity_crypto::publickey::Generator;

#[test]
fn prefix_generator() {
Expand Down
2 changes: 1 addition & 1 deletion accounts/ethstore/src/account/safe_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions util/network-devp2p/src/ip_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down