From 18bcba94e7a485698b0860d43de7454eda823b05 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 10 Dec 2019 17:22:40 +0100 Subject: [PATCH] Err, fix wrong foo functions --- misc/core-derive/tests/test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/core-derive/tests/test.rs b/misc/core-derive/tests/test.rs index 2f4ff803..8fae16ca 100644 --- a/misc/core-derive/tests/test.rs +++ b/misc/core-derive/tests/test.rs @@ -130,11 +130,11 @@ fn custom_polling() { } impl Foo { - fn foo(&mut self) -> std::task::Poll> { std::task::Poll::Pending } + fn foo(&mut self, _: &mut std::task::Context) -> std::task::Poll> { std::task::Poll::Pending } } #[allow(dead_code)] - fn foo(_: &mut std::task::Context) { + fn foo() { require_net_behaviour::>(); } } @@ -186,11 +186,11 @@ fn custom_event_and_polling() { } impl Foo { - fn foo(&mut self) -> std::task::Poll> { std::task::Poll::Pending } + fn foo(&mut self, _: &mut std::task::Context) -> std::task::Poll> { std::task::Poll::Pending } } #[allow(dead_code)] - fn foo(_: &mut std::task::Context) { + fn foo() { require_net_behaviour::>(); } }