File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use std::fs::File;
5
5
use std:: str:: from_utf8;
6
6
7
7
use crate :: common:: ascii:: { CR , CRLF_LEN , LF , SP } ;
8
- pub use crate :: common :: HttpHeaderError ;
8
+
9
9
pub use crate :: common:: RequestError ;
10
10
use crate :: common:: { Body , Method , Version } ;
11
11
use crate :: headers:: Headers ;
@@ -549,7 +549,7 @@ mod tests {
549
549
let request = Request :: try_from ( request_bytes, None ) ;
550
550
assert_eq ! (
551
551
request. unwrap_err( ) ,
552
- RequestError :: HeaderError ( HttpHeaderError :: InvalidValue (
552
+ RequestError :: HeaderError ( crate :: HttpHeaderError :: InvalidValue (
553
553
"Accept-Encoding" . to_string( ) ,
554
554
"identity;q=0" . to_string( )
555
555
) )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use std::os::unix::net::{UnixListener, UnixStream};
8
8
use std:: path:: Path ;
9
9
10
10
use crate :: common:: { Body , Version } ;
11
- pub use crate :: common:: { ConnectionError , RequestError , ServerError } ;
11
+ pub use crate :: common:: { ConnectionError , ServerError } ;
12
12
use crate :: connection:: HttpConnection ;
13
13
use crate :: request:: Request ;
14
14
use crate :: response:: { Response , StatusCode } ;
@@ -972,7 +972,7 @@ mod tests {
972
972
assert_eq ! ( server. connections. len( ) , 10 ) ;
973
973
974
974
// Check that the server detects a connection shutdown.
975
- let sock: & UnixStream = sockets. get ( 0 ) . unwrap ( ) ;
975
+ let sock: & UnixStream = sockets. first ( ) . unwrap ( ) ;
976
976
sock. shutdown ( Shutdown :: Both ) . unwrap ( ) ;
977
977
assert ! ( server. requests( ) . unwrap( ) . is_empty( ) ) ;
978
978
// Server should drop a closed connection.
You can’t perform that action at this time.
0 commit comments