1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 21:51:06 +01:00

chore: remove redundant imports

This commit is contained in:
Rob Ede 2024-02-19 11:36:15 +00:00
parent 3cb247874e
commit 39bab04800
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
4 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ use crate::system::{System, SystemCommand};
pub(crate) static COUNT: AtomicUsize = AtomicUsize::new(0);
thread_local!(
static HANDLE: RefCell<Option<ArbiterHandle>> = RefCell::new(None);
static HANDLE: RefCell<Option<ArbiterHandle>> = const { RefCell::new(None) };
);
pub(crate) enum ArbiterCommand {

View File

@ -16,7 +16,7 @@ use crate::{arbiter::ArbiterHandle, Arbiter};
static SYSTEM_COUNT: AtomicUsize = AtomicUsize::new(0);
thread_local!(
static CURRENT: RefCell<Option<System>> = RefCell::new(None);
static CURRENT: RefCell<Option<System>> = const { RefCell::new(None) };
);
/// A manager for a per-thread distributed async runtime.

View File

@ -131,7 +131,7 @@ mod test {
use super::*;
thread_local! {
static SPAN: RefCell<Vec<span::Id>> = RefCell::new(Vec::new());
static SPAN: RefCell<Vec<span::Id>> = const { RefCell::new(Vec::new()) };
}
#[derive(Default)]

View File

@ -13,7 +13,7 @@ use alloc::{
string::{String, ToString},
vec::Vec,
};
use core::{borrow::Borrow, convert::TryFrom, fmt, hash, ops, str};
use core::{borrow::Borrow, fmt, hash, ops, str};
use bytes::Bytes;