mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
chore: fix clippy errors (#2571)
This commit is contained in:
@@ -17,7 +17,7 @@ async fn split() -> Result<()> {
|
||||
|
||||
let handle = thread::spawn(move || {
|
||||
let (mut stream, _) = listener.accept().unwrap();
|
||||
stream.write(MSG).unwrap();
|
||||
stream.write_all(MSG).unwrap();
|
||||
|
||||
let mut read_buf = [0u8; 32];
|
||||
let read_len = stream.read(&mut read_buf).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user