diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-07-29 11:46:18 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-08-27 10:23:29 +0200 |
| commit | 95ebffa3f13903146ca1c1a0c0345e5ebf1b461b (patch) | |
| tree | 36ad78830a4682e367e0881f713d233974906569 /test/test-rpc/src | |
| parent | 3388f5d5591c7bd704ab06839a651b5c46802425 (diff) | |
| download | mullvadvpn-95ebffa3f13903146ca1c1a0c0345e5ebf1b461b.tar.xz mullvadvpn-95ebffa3f13903146ca1c1a0c0345e5ebf1b461b.zip | |
Use std LazyLock instead of once_cell Lazy
Diffstat (limited to 'test/test-rpc/src')
| -rw-r--r-- | test/test-rpc/src/net.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-rpc/src/net.rs b/test/test-rpc/src/net.rs index 124b4f9ad3..c867ccf0d0 100644 --- a/test/test-rpc/src/net.rs +++ b/test/test-rpc/src/net.rs @@ -1,15 +1,14 @@ use futures::channel::oneshot; use hyper::{Client, Uri}; -use once_cell::sync::Lazy; use serde::{de::DeserializeOwned, Deserialize, Serialize}; -use std::{net::SocketAddr, time::Duration}; +use std::{net::SocketAddr, sync::LazyLock, time::Duration}; use tokio_rustls::rustls::ClientConfig; use crate::{AmIMullvad, Error}; const LE_ROOT_CERT: &[u8] = include_bytes!("../../../mullvad-api/le_root_cert.pem"); -static CLIENT_CONFIG: Lazy<ClientConfig> = Lazy::new(|| { +static CLIENT_CONFIG: LazyLock<ClientConfig> = LazyLock::new(|| { ClientConfig::builder() .with_safe_default_cipher_suites() .with_safe_default_kx_groups() |
