From 8e271c09a94592b25a3cb9d3b935089388983e20 Mon Sep 17 00:00:00 2001 From: dragon-zhang Date: Tue, 30 Jan 2024 21:41:57 +0800 Subject: [PATCH] fix clippy --- monoio/src/net/tcp/tfo/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monoio/src/net/tcp/tfo/linux.rs b/monoio/src/net/tcp/tfo/linux.rs index f97112d0..bea85ed6 100644 --- a/monoio/src/net/tcp/tfo/linux.rs +++ b/monoio/src/net/tcp/tfo/linux.rs @@ -6,7 +6,7 @@ pub(crate) static TFO_CONNECT_AVAILABLE: Cell = Cell::new(true); #[cfg(not(feature = "unstable"))] thread_local! { - pub(crate) static TFO_CONNECT_AVAILABLE: Cell = Cell::new(true); + pub(crate) static TFO_CONNECT_AVAILABLE: Cell = const { Cell::new(true) }; } /// Call before listen.