mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-15 00:00:15 +02:00
net: use Box::pin instead of Pin::new(Box::new) (#1587)
This commit is contained in:
@@ -166,10 +166,10 @@ where
|
||||
OsStorage: 'static + Send + Sync + Init,
|
||||
{
|
||||
lazy_static! {
|
||||
static ref GLOBALS: Pin<Box<Globals>> = Pin::new(Box::new(Globals {
|
||||
static ref GLOBALS: Pin<Box<Globals>> = Box::pin(Globals {
|
||||
extra: OsExtraData::init(),
|
||||
registry: Registry::new(OsStorage::init()),
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
GLOBALS.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user