Commit ffc673e7 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

sim: remove deprecated usage of sync::ONCE_INIT

Switch to `Once::new()`.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 90f449ee
Loading
Loading
Loading
Loading
+2 −2
Changes for sim/src/testlog.rs: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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() {