Clippy warnings (#382)

This commit is contained in:
Nikolay Kim 2024-07-16 22:13:33 +02:00 committed by GitHub
parent 2cbc42730b
commit d39611d246
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 33 additions and 43 deletions

View file

@ -117,7 +117,7 @@ mod tests {
let _ = tx.send(());
crate::time::sleep(Duration::from_millis(25)).await;
assert_eq!(lazy(|cx| srv.poll_ready(cx)).await, Poll::Ready(Ok(())));
assert_eq!(srv.shutdown().await, ());
srv.shutdown().await;
}
#[ntex_macros::rt_test2]

View file

@ -118,7 +118,7 @@ mod tests {
let _ = tx.send(());
crate::time::sleep(Duration::from_millis(25)).await;
assert_eq!(lazy(|cx| srv.poll_ready(cx)).await, Poll::Ready(Ok(())));
assert_eq!(srv.shutdown().await, ());
srv.shutdown().await;
}
#[ntex_macros::rt_test2]

View file

@ -183,7 +183,7 @@ mod tests {
Pipeline::new(TimeoutService::new(resolution, SleepService(wait_time)).clone());
assert_eq!(timeout.call(()).await, Ok(()));
assert_eq!(timeout.ready().await, Ok(()));
assert_eq!(timeout.shutdown().await, ());
timeout.shutdown().await;
}
#[ntex_macros::rt_test2]

View file

@ -283,7 +283,7 @@ mod tests {
let service = factory.pipeline(&()).await.unwrap().clone();
assert!(service.ready().await.is_ok());
assert_eq!(service.shutdown().await, ());
service.shutdown().await;
assert_eq!(service.call(Variant3::V1(())).await, Ok(1));
assert_eq!(service.call(Variant3::V2(())).await, Ok(2));