sim: remove deprecated usage of sync::ONCE_INIT

Switch to `Once::new()`.

Signed-off-by: Fabio Utzig <utzig@apache.org>
This commit is contained in:
Fabio Utzig 2019-10-30 09:22:04 -03:00 committed by Fabio Utzig
parent 90f449ee5c
commit ffc673e7d2
1 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@
//! the tests.
use env_logger;
use std::sync::{Once, ONCE_INIT};
use std::sync::Once;
static INIT: Once = ONCE_INIT;
static INIT: Once = Once::new();
/// Setup the logging system. Intended to be called at the beginning of each test.
pub fn setup() {