From 2b92dfcf95c8de9bf1e43b4922905530cb887998 Mon Sep 17 00:00:00 2001 From: Jeremy Andrews Date: Sat, 2 Nov 2019 20:11:08 +0100 Subject: [PATCH] replace the use of the deprecated item (#314) --- examples/benchmark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/benchmark.rs b/examples/benchmark.rs index 90a36d80a..3e78ac234 100644 --- a/examples/benchmark.rs +++ b/examples/benchmark.rs @@ -10,7 +10,7 @@ mod utils; use std::cmp; use std::collections::BTreeMap; -use std::sync::atomic::{Ordering, AtomicBool, ATOMIC_BOOL_INIT}; +use std::sync::atomic::{Ordering, AtomicBool}; use std::thread; use std::io::{Read, Write}; use std::net::TcpStream; @@ -59,7 +59,7 @@ fn client(kind: Client) { CLIENT_DONE.store(true, Ordering::SeqCst); } -static CLIENT_DONE: AtomicBool = ATOMIC_BOOL_INIT; +static CLIENT_DONE: AtomicBool = AtomicBool::new(false); fn main() { #[cfg(feature = "log")]