Skip to content

Commit 81c03c2

Browse files
emhanetaiki-e
authored andcommitted
Remove unnecessary code from example
1 parent a7974c8 commit 81c03c2

File tree

1 file changed

+0
-2
lines changed
  • examples/09_05_final_tcp_server/src

1 file changed

+0
-2
lines changed

examples/09_05_final_tcp_server/src/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ mod tests {
106106
};
107107

108108
handle_connection(&mut stream).await;
109-
let mut buf = [0u8; 1024];
110-
stream.read(&mut buf).await.unwrap();
111109

112110
let expected_contents = fs::read_to_string("hello.html").unwrap();
113111
let expected_response = format!("HTTP/1.1 200 OK\r\n\r\n{}", expected_contents);

0 commit comments

Comments
 (0)