summaryrefslogtreecommitdiffhomepage
path: root/test/test-runner/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-runner/src')
-rw-r--r--test/test-runner/src/net.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-runner/src/net.rs b/test/test-runner/src/net.rs
index a12fa2776c..7d32f04812 100644
--- a/test/test-runner/src/net.rs
+++ b/test/test-runner/src/net.rs
@@ -251,10 +251,10 @@ pub fn get_interface_mac(_interface: &str) -> Result<Option<[u8; 6]>, test_rpc::
#[cfg(target_os = "windows")]
pub fn get_default_interface() -> &'static str {
- use once_cell::sync::OnceCell;
+ use std::sync::OnceLock;
use talpid_platform_metadata::WindowsVersion;
- static WINDOWS_VERSION: OnceCell<WindowsVersion> = OnceCell::new();
+ static WINDOWS_VERSION: OnceLock<WindowsVersion> = OnceLock::new();
let version = WINDOWS_VERSION
.get_or_init(|| WindowsVersion::new().expect("failed to obtain Windows version"));