Skip to content

Commit

Permalink
replace the use of the deprecated item (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyandrews authored and whitequark committed Nov 2, 2019
1 parent e74ad03 commit 2b92dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit 2b92dfc

Please sign in to comment.