mirror of https://github.com/rust-lang/async-book
Remove unnecessary code from example
This commit is contained in:
parent
a7974c8de8
commit
81c03c260f
|
@ -106,8 +106,6 @@ mod tests {
|
|||
};
|
||||
|
||||
handle_connection(&mut stream).await;
|
||||
let mut buf = [0u8; 1024];
|
||||
stream.read(&mut buf).await.unwrap();
|
||||
|
||||
let expected_contents = fs::read_to_string("hello.html").unwrap();
|
||||
let expected_response = format!("HTTP/1.1 200 OK\r\n\r\n{}", expected_contents);
|
||||
|
|
Loading…
Reference in New Issue