From 233c61ba08d01b8281886b65bf41dcb194d71435 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 21 Nov 2021 23:29:25 +0000 Subject: [PATCH] remove dead code --- actix-rt/src/lib.rs | 3 +++ actix-rt/src/system.rs | 10 ++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index 590335c1..8882a91a 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -36,6 +36,9 @@ //! # `io-uring` Support //! There is experimental support for using io-uring with this crate by enabling the //! `io-uring` feature. For now, it is semver exempt. +//! +//! Note that there are currently some unimplemented parts of using `actix-rt` with `io-uring`. +//! In particular, when running a `System`, only `System::block_on` is supported. #![deny(rust_2018_idioms, nonstandard_style)] #![allow(clippy::type_complexity)] diff --git a/actix-rt/src/system.rs b/actix-rt/src/system.rs index 395c4f96..635f3c18 100644 --- a/actix-rt/src/system.rs +++ b/actix-rt/src/system.rs @@ -67,11 +67,7 @@ impl System { let sys_ctrl = SystemController::new(sys_rx, stop_tx); rt.spawn(sys_ctrl); - SystemRunner { - rt, - stop_rx, - system, - } + SystemRunner { rt, stop_rx } } } @@ -94,7 +90,7 @@ impl System { where F: Fn() -> tokio::runtime::Runtime, { - unimplemented!("System::with_tokio_rt is not implemented yet") + unimplemented!("System::with_tokio_rt is not implemented for io-uring feature yet") } } @@ -182,8 +178,6 @@ impl System { pub struct SystemRunner { rt: crate::runtime::Runtime, stop_rx: oneshot::Receiver, - #[allow(dead_code)] - system: System, } #[cfg(not(feature = "io-uring"))]