Skip to content

Commit b65d2a8

Browse files
committed
lint
1 parent bce9ff2 commit b65d2a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proto/h1/role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ impl Server {
702702
#[cfg(debug_assertions)]
703703
{
704704
if let Some(len) = headers::content_length_parse(&value) {
705-
if (msg.req_method != &Some(Method::HEAD) || known_len != 0) {
705+
if msg.req_method != &Some(Method::HEAD) || known_len != 0 {
706706
assert!(
707707
len == known_len,
708708
"payload claims content-length of {}, custom content-length header claims {}",

0 commit comments

Comments
 (0)