From 9fcb89bba86f2502bd31cd888f2c6906b4f5e637 Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Wed, 25 May 2016 09:56:41 +0200 Subject: [PATCH] Updated dependencies, removed unused imports --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- src/cloud.rs | 2 -- src/ip.rs | 1 - src/types.rs | 1 - 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 63e0f57..aca9077 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -56,7 +56,7 @@ name = "docopt" version = "0.6.80" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "regex 0.1.69 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.1.71 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "strsim 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -167,19 +167,19 @@ dependencies = [ [[package]] name = "regex" -version = "0.1.69" +version = "0.1.71" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "aho-corasick 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", - "regex-syntax 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", + "regex-syntax 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", "thread_local 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", "utf8-ranges 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "regex-syntax" -version = "0.3.1" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] diff --git a/Cargo.toml b/Cargo.toml index 71c5faf..e169468 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ libc = "0.2" aligned_alloc = "0.1" rand = "0.3" fnv = "1" -net2 = "*" +net2 = "0.2" [build-dependencies] gcc = "0.3" diff --git a/src/cloud.rs b/src/cloud.rs index 8705ecb..497ebe2 100644 --- a/src/cloud.rs +++ b/src/cloud.rs @@ -4,9 +4,7 @@ use std::net::{SocketAddr, ToSocketAddrs}; use std::collections::{HashMap, HashSet}; -use std::hash::Hasher; use std::net::UdpSocket; -use std::io::Read; use std::io::Result as IoResult; use std::fmt; use std::os::unix::io::AsRawFd; diff --git a/src/ip.rs b/src/ip.rs index 94f56be..9d45802 100644 --- a/src/ip.rs +++ b/src/ip.rs @@ -4,7 +4,6 @@ use std::net::SocketAddr; use std::collections::{hash_map, HashMap}; -use std::io::Read; use std::hash::BuildHasherDefault; use fnv::FnvHasher; diff --git a/src/types.rs b/src/types.rs index 8b88024..d7750cc 100644 --- a/src/types.rs +++ b/src/types.rs @@ -3,7 +3,6 @@ // This software is licensed under GPL-3 or newer (see LICENSE.md) use std::net::{SocketAddr, Ipv4Addr, Ipv6Addr}; -use std::hash::Hasher; use std::fmt; use std::str::FromStr;