diff options
author | Omer BenAmram <omerbenamram@gmail.com> | 2020-01-06 23:12:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 23:12:42 +0300 |
commit | 6f8256e8f4fbc1f11951577712d1595ffaabad44 (patch) | |
tree | 36e4f85209ca27b447f188a660e98731d1cb96b8 /tests/fixtures.rs | |
parent | 8fc54c4abcdad8ccca1459dd9557996512d49557 (diff) | |
parent | 678d4df9663d4bfdd119e0cbf35f556b4414dec3 (diff) |
Merge pull request #35 from omerbenamram/housekeeping
Housekeeping
Diffstat (limited to 'tests/fixtures.rs')
-rw-r--r-- | tests/fixtures.rs | 4 |
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. |