From c66233e22593ae42bfccbc3395f7dd2069de32db Mon Sep 17 00:00:00 2001 From: Yinuo Deng Date: Fri, 14 Apr 2023 23:59:23 +0800 Subject: [PATCH] Run rustfmt on c76056b and f70c36e --- actix-web/src/response/builder.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/actix-web/src/response/builder.rs b/actix-web/src/response/builder.rs index bcbb01000..b814cc3fc 100644 --- a/actix-web/src/response/builder.rs +++ b/actix-web/src/response/builder.rs @@ -345,8 +345,10 @@ impl HttpResponseBuilder { let parts = self.inner().unwrap(); let length = parts.headers.get(header::CONTENT_LENGTH).unwrap().to_str(); - if let Ok(length) = length { // length is now of type &str - if let Ok(length) = length.parse::() { //length is now of type u64 + if let Ok(length) = length { + // length is now of type &str + if let Ok(length) = length.parse::() { + //length is now of type u64 // Set no_chunking // Since no_chuking() uses insert_header(), // this will not lead to duplicated header even if it exists