drop dependency on once-cell

This commit is contained in:
Charles Hall 2024-10-24 15:31:04 -07:00
parent a550d8db1f
commit e74c8687f5
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 12 additions and 10 deletions

View file

@ -4,9 +4,9 @@ use std::{
fmt::{self, Display},
net::{IpAddr, Ipv4Addr},
path::{Path, PathBuf},
sync::LazyLock,
};
use once_cell::sync::Lazy;
use reqwest::Url;
use ruma::{
api::federation::discovery::OldVerifyKey, OwnedServerName,
@ -24,8 +24,8 @@ pub(crate) use env_filter_clone::EnvFilterClone;
use proxy::ProxyConfig;
/// The default configuration file path
pub(crate) static DEFAULT_PATH: Lazy<PathBuf> =
Lazy::new(|| [env!("CARGO_PKG_NAME"), "config.toml"].iter().collect());
pub(crate) static DEFAULT_PATH: LazyLock<PathBuf> =
LazyLock::new(|| [env!("CARGO_PKG_NAME"), "config.toml"].iter().collect());
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Deserialize)]