mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
drop dependency on once-cell
This commit is contained in:
parent
a550d8db1f
commit
e74c8687f5
4 changed files with 12 additions and 10 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue