File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ edition = "2021"
1010
1111
1212[dependencies ]
13- lazy_static = " 1"
1413futures = " 0.3"
1514tokio-util = " >= 0.6, < 0.8"
1615pin-project-lite = " 0.2"
Original file line number Diff line number Diff line change @@ -197,14 +197,12 @@ pub mod tokio;
197197
198198pub use registry:: { ShutdownGuard , WaitForShutdownFuture } ;
199199
200- use lazy_static:: lazy_static;
201200use std:: future:: Future ;
202201use std:: pin:: Pin ;
203- use std:: sync:: Mutex ;
202+ use std:: sync:: { LazyLock , Mutex } ;
204203
205- lazy_static ! {
206- static ref REGISTRY : Mutex <registry:: Registry > = Mutex :: new( registry:: Registry :: new( ) ) ;
207- }
204+ static REGISTRY : LazyLock < Mutex < registry:: Registry > > =
205+ LazyLock :: new ( || Mutex :: new ( registry:: Registry :: new ( ) ) ) ;
208206
209207pub ( crate ) type BoxFuture < T > = Pin < Box < dyn Future < Output = T > + Send > > ;
210208
You can’t perform that action at this time.
0 commit comments