We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unix::Client::new
write
1 parent b38aa02 commit e1e1ae5Copy full SHA for e1e1ae5
src/unix.rs
@@ -25,9 +25,8 @@ impl Client {
25
let client = unsafe { Client::mk()? };
26
// I don't think the character written here matters, but I could be
27
// wrong!
28
- for _ in 0..limit {
29
- (&client.write).write_all(&[b'|'])?;
30
- }
+ let v: Vec<u8> = vec![b'|'; limit];
+ (&client.write).write_all(&v)?;
31
Ok(client)
32
}
33
0 commit comments