1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

minimize futures-util dep in actix-http

This commit is contained in:
Rob Ede
2021-12-16 22:26:45 +00:00
parent a6d5776481
commit 44b7302845
3 changed files with 6 additions and 5 deletions

View File

@ -198,7 +198,7 @@ mod foreign_impls {
// we do not have DerefMut access to call take_complete_body directly but since
// is_complete_body is true we should expect the entire bytes chunk in one poll_next
let waker = futures_util::task::noop_waker();
let waker = futures_task::noop_waker();
let mut cx = Context::from_waker(&waker);
match self.as_mut().poll_next(&mut cx) {
@ -631,7 +631,7 @@ mod tests {
// second call returns empty
assert_eq!(data.take_complete_body(), b"".as_ref());
let waker = futures_util::task::noop_waker();
let waker = futures_task::noop_waker();
let mut cx = Context::from_waker(&waker);
let mut data = Bytes::from_static(b"test");
// take returns whole chunk