Skip to content

Commit 39bab04

Browse files
committed
chore: remove redundant imports
1 parent 3cb2478 commit 39bab04

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

actix-rt/src/arbiter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::system::{System, SystemCommand};
1616
pub(crate) static COUNT: AtomicUsize = AtomicUsize::new(0);
1717

1818
thread_local!(
19-
static HANDLE: RefCell<Option<ArbiterHandle>> = RefCell::new(None);
19+
static HANDLE: RefCell<Option<ArbiterHandle>> = const { RefCell::new(None) };
2020
);
2121

2222
pub(crate) enum ArbiterCommand {

actix-rt/src/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::{arbiter::ArbiterHandle, Arbiter};
1616
static SYSTEM_COUNT: AtomicUsize = AtomicUsize::new(0);
1717

1818
thread_local!(
19-
static CURRENT: RefCell<Option<System>> = RefCell::new(None);
19+
static CURRENT: RefCell<Option<System>> = const { RefCell::new(None) };
2020
);
2121

2222
/// A manager for a per-thread distributed async runtime.

actix-tracing/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ mod test {
131131
use super::*;
132132

133133
thread_local! {
134-
static SPAN: RefCell<Vec<span::Id>> = RefCell::new(Vec::new());
134+
static SPAN: RefCell<Vec<span::Id>> = const { RefCell::new(Vec::new()) };
135135
}
136136

137137
#[derive(Default)]

bytestring/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use alloc::{
1313
string::{String, ToString},
1414
vec::Vec,
1515
};
16-
use core::{borrow::Borrow, convert::TryFrom, fmt, hash, ops, str};
16+
use core::{borrow::Borrow, fmt, hash, ops, str};
1717

1818
use bytes::Bytes;
1919

0 commit comments

Comments
 (0)