summaryrefslogtreecommitdiffstats
path: root/net/tests/hkp.rs
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/tests/hkp.rs
parent6aef02cd7e182587a488c952f6b9771ce50a10ec (diff)
Bump quickcheck to 0.9, rand to 0.7.
Diffstat (limited to 'net/tests/hkp.rs')
-rw-r--r--net/tests/hkp.rs2
1 files changed, 1 insertions, 1 deletions
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) {