File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl<T: Reader> BufferedStream<T> {
53
53
( 0 , _) => panic ! ( "poke called when buffer is full" ) ,
54
54
( _, _) => self . read_pos -= 1 ,
55
55
}
56
- self . read_buffer [ mut ] [ self . read_pos ] = byte;
56
+ self . read_buffer [ self . read_pos ] = byte;
57
57
}
58
58
59
59
#[ inline]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl super::HeaderConvertible for Host {
30
30
let s = reader. collect_to_string ( ) ;
31
31
// TODO: this doesn't support IPv6 address access (e.g. "[::1]")
32
32
// Do this properly with correct authority parsing.
33
- let mut hi = s[ ] . splitn ( 1 , ':' ) ;
33
+ let mut hi = s. splitn ( 1 , ':' ) ;
34
34
Some ( Host {
35
35
name : String :: from_str ( hi. next ( ) . unwrap ( ) ) ,
36
36
port : match hi. next ( ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl super::HeaderConvertible for TransferCoding {
27
27
Some ( token) => {
28
28
// XXX is this actually the best way to do this?
29
29
let token = token. to_ascii_lowercase ( ) ;
30
- if token[ ] == "chunked" {
30
+ if token == "chunked" {
31
31
Some ( Chunked )
32
32
} else {
33
33
match reader. read_parameters ( ) {
You can’t perform that action at this time.
0 commit comments