diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-04-26 10:10:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 10:10:57 -0400 |
commit | 9c3da280e0b8331861d3420ea4b5cedc2b6131b0 (patch) | |
tree | 83c85bd051676df11c059845e449e944f54da982 /core/runtime.rs | |
parent | cdd2355f0f516e55ef638f38006677003685a92f (diff) |
remove #![deny(warnings)] (#10376)
Prefer RUSTFLAGS="-D warnings" to prevent warnings, but cannot
enable yet due to #10378.
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 11 |
1 files changed, 0 insertions, 11 deletions
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 { |