sim: remove deprecated usage of sync::ONCE_INIT
Switch to `Once::new()`.
//! 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() {
