1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

yes: correct a typo (#1727)

Improve readability by fixing an inadvertent rename during a performance
enhancement (b46e228).
This commit is contained in:
Daniel Rocco 2021-02-16 17:40:23 -05:00 committed by GitHub
parent 05d8cc59c4
commit e2b58051e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,8 +77,8 @@ fn prepare_buffer<'a>(input: &'a str, _buffer: &'a mut [u8; BUF_SIZE]) -> &'a [u
} }
pub fn exec(bytes: &[u8]) { pub fn exec(bytes: &[u8]) {
let mut stdin_raw = io::stdout(); let mut stdout_raw = io::stdout();
let mut writer = ZeroCopyWriter::with_default(&mut stdin_raw, |stdin| stdin.lock()); let mut writer = ZeroCopyWriter::with_default(&mut stdout_raw, |stdout| stdout.lock());
loop { loop {
// TODO: needs to check if pipe fails // TODO: needs to check if pipe fails
writer.write_all(bytes).unwrap(); writer.write_all(bytes).unwrap();