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:
@@ -484,7 +484,7 @@ impl MprisManager {
|
||||
|
||||
let (tx, rx) = mpsc::unbounded_channel::<()>();
|
||||
|
||||
ASYNC_RUNTIME.spawn(async {
|
||||
ASYNC_RUNTIME.get().unwrap().spawn(async {
|
||||
let result = Self::serve(UnboundedReceiverStream::new(rx), root, player).await;
|
||||
if let Err(e) = result {
|
||||
log::error!("MPRIS error: {e}");
|
||||
|
||||
Reference in New Issue
Block a user