From 9c3da280e0b8331861d3420ea4b5cedc2b6131b0 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 26 Apr 2021 10:10:57 -0400 Subject: remove #![deny(warnings)] (#10376) Prefer RUSTFLAGS="-D warnings" to prevent warnings, but cannot enable yet due to #10378. --- core/runtime.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'core') diff --git a/core/runtime.rs b/core/runtime.rs index 7475c7020..da7d6598a 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -1495,7 +1495,6 @@ pub mod tests { enum Mode { Async, - AsyncUnref, AsyncZeroCopy(bool), } @@ -1520,16 +1519,6 @@ pub mod tests { let resp = (0, serialize_op_result(Ok(43), rc_op_state)); Op::Async(Box::pin(futures::future::ready(resp))) } - Mode::AsyncUnref => { - let control: u8 = payload.deserialize().unwrap(); - assert_eq!(control, 42); - let fut = async { - // This future never finish. - futures::future::pending::<()>().await; - (0, serialize_op_result(Ok(43), rc_op_state)) - }; - Op::AsyncUnref(Box::pin(fut)) - } Mode::AsyncZeroCopy(has_buffer) => { assert_eq!(buf.is_some(), has_buffer); if let Some(buf) = buf { -- cgit v1.2.3