File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ as_conversions = "allow" # TODO: tricky
118118cast_possible_truncation = " allow" # TODO: consider
119119cast_precision_loss = " allow" # TODO: consider
120120checked_conversions = " allow"
121- collapsible_match = " allow"
122121else_if_without_else = " allow"
123122enum_glob_use = " allow"
124123float_arithmetic = " allow"
Original file line number Diff line number Diff line change @@ -676,11 +676,9 @@ where
676676 Version :: HTTP_10 => self . state . disable_keep_alive ( ) ,
677677 // If response is version 1.1 and keep-alive is wanted, add
678678 // Connection: keep-alive header when not present
679- Version :: HTTP_11 => {
680- if self . state . wants_keep_alive ( ) {
681- head. headers
682- . insert ( CONNECTION , HeaderValue :: from_static ( "keep-alive" ) ) ;
683- }
679+ Version :: HTTP_11 if self . state . wants_keep_alive ( ) => {
680+ head. headers
681+ . insert ( CONNECTION , HeaderValue :: from_static ( "keep-alive" ) ) ;
684682 }
685683 _ => ( ) ,
686684 }
You can’t perform that action at this time.
0 commit comments