diff --git a/tokio-util/src/task/spawn_pinned.rs b/tokio-util/src/task/spawn_pinned.rs index 5e4d6cda3..c94d5e841 100644 --- a/tokio-util/src/task/spawn_pinned.rs +++ b/tokio-util/src/task/spawn_pinned.rs @@ -14,7 +14,7 @@ use tokio::task::{spawn_local, JoinHandle, LocalSet}; /// Internally the local pool uses a [`tokio::task::LocalSet`] for each worker thread /// in the pool. Consequently you can also use [`tokio::task::spawn_local`] (which will /// execute on the same thread) inside the Future you supply to the various spawn methods -/// of `LocalPoolHandle`, +/// of `LocalPoolHandle`. /// /// [`tokio::task::LocalSet`]: tokio::task::LocalSet /// [`tokio::task::spawn_local`]: tokio::task::spawn_local @@ -194,7 +194,7 @@ enum WorkerChoice { } struct LocalPool { - workers: Vec, + workers: Box<[LocalWorkerHandle]>, } impl LocalPool { diff --git a/tokio-util/src/time/wheel/mod.rs b/tokio-util/src/time/wheel/mod.rs index d81611c92..04e6d3a42 100644 --- a/tokio-util/src/time/wheel/mod.rs +++ b/tokio-util/src/time/wheel/mod.rs @@ -34,7 +34,7 @@ pub(crate) struct Wheel { /// * ~ 4 min slots / ~ 4 hr range /// * ~ 4 hr slots / ~ 12 day range /// * ~ 12 day slots / ~ 2 yr range - levels: Vec>, + levels: Box<[Level]>, } /// Number of levels. Each level has 64 slots. By using 6 levels with 64 slots diff --git a/tokio/src/signal/unix.rs b/tokio/src/signal/unix.rs index c4a196a66..ae6bc94ea 100644 --- a/tokio/src/signal/unix.rs +++ b/tokio/src/signal/unix.rs @@ -18,7 +18,7 @@ use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Once; use std::task::{Context, Poll}; -pub(crate) type OsStorage = Vec; +pub(crate) type OsStorage = Box<[SignalInfo]>; impl Init for OsStorage { fn init() -> Self {