Merge pull request #377 from Arcterus/fix-pipe_writeln

common/util: make pipe_writeln! use writeln! instead of write!
This commit is contained in:
Heather 2014-08-05 08:18:52 +04:00
commit b65719638d

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 {