Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixtures.rs')
-rw-r--r--tests/fixtures.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fixtures.rs b/tests/fixtures.rs
index 17dfed6..bc831b3 100644
--- a/tests/fixtures.rs
+++ b/tests/fixtures.rs
@@ -1,9 +1,9 @@
#![allow(dead_code)]
use std::path::PathBuf;
-use std::sync::{Once, ONCE_INIT};
+use std::sync::Once;
-static LOGGER_INIT: Once = ONCE_INIT;
+static LOGGER_INIT: Once = Once::new();
// Rust runs the tests concurrently, so unless we synchronize logging access
// it will crash when attempting to run `cargo test` with some logging facilities.