Skip to content

Commit 0300719

Browse files
committed
rustfmt
1 parent a01f91f commit 0300719

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/server/decode.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ where
6363

6464
let version = httparse_req.version;
6565
let version = version.ok_or_else(|| format_err!("No version found"))?;
66-
ensure_eq!(version, HTTP_1_1_VERSION, "Unsupported HTTP version 1.{}", version);
66+
67+
ensure_eq!(
68+
version,
69+
HTTP_1_1_VERSION,
70+
"Unsupported HTTP version 1.{}",
71+
version
72+
);
6773

6874
let mut req = Request::new(Method::from_str(method)?, uri);
6975
for header in httparse_req.headers.iter() {

0 commit comments

Comments
 (0)