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

bump MSRV to 1.42 (#1616)

This commit is contained in:
Rob Ede
2020-07-21 08:40:30 +01:00
committed by GitHub
parent f8d5ad6b53
commit 0ec335a39c
15 changed files with 29 additions and 82 deletions

View File

@ -37,10 +37,7 @@ where
trace!("Sending client request: {:?} {:?}", head, body.size());
let head_req = head.as_ref().method == Method::HEAD;
let length = body.size();
let eof = match length {
BodySize::None | BodySize::Empty | BodySize::Sized(0) => true,
_ => false,
};
let eof = matches!(length, BodySize::None | BodySize::Empty | BodySize::Sized(0));
let mut req = Request::new(());
*req.uri_mut() = head.as_ref().uri.clone();