File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,13 @@ impl BufferWriter {
31
31
}
32
32
}
33
33
34
- pub ( in crate :: fmt:: writer) fn pipe ( pipe : Box < Mutex < dyn io:: Write + Send + ' static > > ) -> Self {
34
+ pub ( in crate :: fmt:: writer) fn pipe (
35
+ pipe : Box < Mutex < dyn io:: Write + Send + ' static > > ,
36
+ write_style : WriteStyle ,
37
+ ) -> Self {
35
38
BufferWriter {
36
39
target : WritableTarget :: Pipe ( pipe) ,
37
- write_style : WriteStyle :: Never ,
40
+ write_style,
38
41
}
39
42
}
40
43
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ impl Builder {
138
138
let writer = match mem:: take ( & mut self . target ) {
139
139
Target :: Stdout => BufferWriter :: stdout ( self . is_test , color_choice) ,
140
140
Target :: Stderr => BufferWriter :: stderr ( self . is_test , color_choice) ,
141
- Target :: Pipe ( pipe) => BufferWriter :: pipe ( Box :: new ( Mutex :: new ( pipe) ) ) ,
141
+ Target :: Pipe ( pipe) => BufferWriter :: pipe ( Box :: new ( Mutex :: new ( pipe) ) , color_choice ) ,
142
142
} ;
143
143
144
144
Writer { inner : writer }
You can’t perform that action at this time.
0 commit comments