1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-27 06:09:02 +02:00

actix-rt: minimize futures dependencies to futures-{channel,util} with default features off (#104)

* build(deps): minimize `futures` deps by using `futures-channel` and `futures-util` directly

* style(actix-rt): enforce spaces around equals in `Cargo.toml`
This commit is contained in:
Erich Gubler
2020-02-26 09:15:21 -07:00
committed by GitHub
parent f1685d8253
commit 1b7c969f6a
5 changed files with 11 additions and 10 deletions

View File

@ -25,7 +25,7 @@ pub use actix_threadpool as blocking;
/// This function panics if actix system is not running.
pub fn spawn<F>(f: F)
where
F: futures::Future<Output = ()> + 'static,
F: futures_util::future::Future<Output = ()> + 'static,
{
if !System::is_set() {
panic!("System is not running");