Remove unnecessary code from example

This commit is contained in:
Emilia Hane 2022-03-10 21:14:49 +01:00 committed by Taiki Endo
parent a7974c8de8
commit 81c03c260f
1 changed files with 0 additions and 2 deletions

View File

@ -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);