File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,18 +68,18 @@ impl WritableTarget {
68
68
match self {
69
69
WritableTarget :: WriteStdout => {
70
70
let mut stream = std:: io:: stdout ( ) . lock ( ) ;
71
- write ! ( stream, "{}" , String :: from_utf8_lossy ( buf) ) ?;
71
+ stream. write_all ( buf) ?;
72
72
}
73
73
WritableTarget :: PrintStdout => print ! ( "{}" , String :: from_utf8_lossy( buf) ) ,
74
74
WritableTarget :: WriteStderr => {
75
75
let mut stream = std:: io:: stderr ( ) . lock ( ) ;
76
- write ! ( stream, "{}" , String :: from_utf8_lossy ( buf) ) ?;
76
+ stream. write_all ( buf) ?;
77
77
}
78
78
WritableTarget :: PrintStderr => eprint ! ( "{}" , String :: from_utf8_lossy( buf) ) ,
79
79
// Safety: If the target type is `Pipe`, `target_pipe` will always be non-empty.
80
80
WritableTarget :: Pipe ( pipe) => {
81
81
let mut stream = pipe. lock ( ) . unwrap ( ) ;
82
- write ! ( stream, "{}" , String :: from_utf8_lossy ( buf) ) ?;
82
+ stream. write_all ( buf) ?;
83
83
}
84
84
}
85
85
You can’t perform that action at this time.
0 commit comments