refactor: remove lazy_static crate
The `lazy_static` crate was superseded by the `once_cell` crate which has been included in Rust's standard library since version `1.70`. Remove the `lazy_static` dependency and refactor all use cases to use `std::sync::OnceLock` instead. Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
This commit is contained in:
@@ -175,10 +175,8 @@ impl Default for UserState {
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
/// Configuration files are read/written relative to this directory.
|
||||
pub static ref BASE_PATH: RwLock<Option<PathBuf>> = RwLock::new(None);
|
||||
}
|
||||
/// Configuration files are read/written relative to this directory.
|
||||
static BASE_PATH: RwLock<Option<PathBuf>> = RwLock::new(None);
|
||||
|
||||
/// The complete configuration (state + user configuration) of ncspot.
|
||||
pub struct Config {
|
||||
|
||||
Reference in New Issue
Block a user