mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 22:51:07 +01:00
remove dead code
This commit is contained in:
parent
161f239f12
commit
233c61ba08
@ -36,6 +36,9 @@
|
|||||||
//! # `io-uring` Support
|
//! # `io-uring` Support
|
||||||
//! There is experimental support for using io-uring with this crate by enabling the
|
//! There is experimental support for using io-uring with this crate by enabling the
|
||||||
//! `io-uring` feature. For now, it is semver exempt.
|
//! `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)]
|
#![deny(rust_2018_idioms, nonstandard_style)]
|
||||||
#![allow(clippy::type_complexity)]
|
#![allow(clippy::type_complexity)]
|
||||||
|
@ -67,11 +67,7 @@ impl System {
|
|||||||
let sys_ctrl = SystemController::new(sys_rx, stop_tx);
|
let sys_ctrl = SystemController::new(sys_rx, stop_tx);
|
||||||
rt.spawn(sys_ctrl);
|
rt.spawn(sys_ctrl);
|
||||||
|
|
||||||
SystemRunner {
|
SystemRunner { rt, stop_rx }
|
||||||
rt,
|
|
||||||
stop_rx,
|
|
||||||
system,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +90,7 @@ impl System {
|
|||||||
where
|
where
|
||||||
F: Fn() -> tokio::runtime::Runtime,
|
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 {
|
pub struct SystemRunner {
|
||||||
rt: crate::runtime::Runtime,
|
rt: crate::runtime::Runtime,
|
||||||
stop_rx: oneshot::Receiver<i32>,
|
stop_rx: oneshot::Receiver<i32>,
|
||||||
#[allow(dead_code)]
|
|
||||||
system: System,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "io-uring"))]
|
#[cfg(not(feature = "io-uring"))]
|
||||||
|
Loading…
Reference in New Issue
Block a user