replace the use of the deprecated item (#314)

v0.7.x
Jeremy Andrews 2019-11-02 20:11:08 +01:00 committed by whitequark
parent cd48a2ef12
commit bce8d13c7f
1 changed files with 2 additions and 2 deletions

View File

@ -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")]