summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-09-06 17:08:37 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-09-06 17:22:47 +0200
commite66d4d27079e45e7b39a9dc3b8bc97ea0428f014 (patch)
tree8eb04e19b658c8df4eebca21a511cf917df20fd4 /net
parent6aef02cd7e182587a488c952f6b9771ce50a10ec (diff)
Bump quickcheck to 0.9, rand to 0.7.
Diffstat (limited to 'net')
-rw-r--r--net/Cargo.toml2
-rw-r--r--net/tests/hkp.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/Cargo.toml b/net/Cargo.toml
index 6750810f..ed9fbf64 100644
--- a/net/Cargo.toml
+++ b/net/Cargo.toml
@@ -41,7 +41,7 @@ url = "2.1"
zbase32 = "0.1.2"
[dev-dependencies]
-rand = { version = "0.6", default-features = false }
+rand = { version = "0.7", default-features = false }
[features]
default = ["compression"]
diff --git a/net/tests/hkp.rs b/net/tests/hkp.rs
index 7e08f215..6005cc69 100644
--- a/net/tests/hkp.rs
+++ b/net/tests/hkp.rs
@@ -124,7 +124,7 @@ fn start_server() -> SocketAddr {
let (tx, rx) = oneshot::channel::<SocketAddr>();
thread::spawn(move || {
let (addr, server) = loop {
- let port = OsRng::new().unwrap().next_u32() as u16;
+ let port = OsRng.next_u32() as u16;
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)),
port);
if let Ok(s) = Server::try_bind(&addr) {