mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
tokio: update code according to new MSRV (#6764)
This commit is contained in:
@@ -461,7 +461,7 @@ impl Spawner {
|
||||
shutdown_tx: shutdown::Sender,
|
||||
rt: &Handle,
|
||||
id: usize,
|
||||
) -> std::io::Result<thread::JoinHandle<()>> {
|
||||
) -> io::Result<thread::JoinHandle<()>> {
|
||||
let mut builder = thread::Builder::new().name((self.inner.thread_name)());
|
||||
|
||||
if let Some(stack_size) = self.inner.stack_size {
|
||||
@@ -497,8 +497,8 @@ cfg_unstable_metrics! {
|
||||
|
||||
// Tells whether the error when spawning a thread is temporary.
|
||||
#[inline]
|
||||
fn is_temporary_os_thread_error(error: &std::io::Error) -> bool {
|
||||
matches!(error.kind(), std::io::ErrorKind::WouldBlock)
|
||||
fn is_temporary_os_thread_error(error: &io::Error) -> bool {
|
||||
matches!(error.kind(), io::ErrorKind::WouldBlock)
|
||||
}
|
||||
|
||||
impl Inner {
|
||||
|
||||
Reference in New Issue
Block a user