1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

common/util: make pipe_writeln! use writeln! instead of write!

This commit is contained in:
Arcterus 2014-08-04 20:17:10 -07:00
parent 7d7b9dde43
commit 7e00000098

View file

@ -136,7 +136,7 @@ macro_rules! pipe_write(
#[macro_export]
macro_rules! pipe_writeln(
($fd:expr, $($args:expr),+) => (
match write!($fd, $($args),+) {
match writeln!($fd, $($args),+) {
Ok(_) => true,
Err(f) => {
if f.kind == ::std::io::BrokenPipe {