1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 20:57:43 +02:00

Suppress/fix clippy warnings

This commit is contained in:
Yuki Okushi
2020-01-28 20:27:33 +09:00
parent ee0db9a617
commit d5a6c83207
19 changed files with 50 additions and 48 deletions

View File

@ -107,7 +107,7 @@ mod tests {
Poll::Pending
);
cond.notify();
assert_eq!(waiter.await, ());
waiter.await;
let mut waiter = cond.wait();
assert_eq!(
@ -121,7 +121,7 @@ mod tests {
);
drop(cond);
assert_eq!(waiter.await, ());
assert_eq!(waiter2.await, ());
waiter.await;
waiter2.await;
}
}

View File

@ -242,7 +242,7 @@ mod tests {
let rx2 = rx2;
let rx3 = rx3;
let tx_stop = tx_stop;
let _ = actix_rt::System::new("test").block_on(async {
actix_rt::System::new("test").block_on(async {
let mut srv = InOrderService::new(Srv);
let _ = lazy(|cx| srv.poll_ready(cx)).await;
@ -251,7 +251,7 @@ mod tests {
let res3 = srv.call(rx3);
actix_rt::spawn(async move {
let _ = poll_fn(|cx| {
poll_fn(|cx| {
let _ = srv.poll_ready(cx);
Poll::<()>::Pending
})