mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
update lockStderrWriter sites
use the application's Io implementation where possible. This correctly makes writing to stderr cancelable, fallible, and participate in the application's event loop. It also removes one more hard-coded dependency on a secondary Io implementation.
This commit is contained in:
@@ -764,7 +764,7 @@ fn appendTreeSymbol(symbol: TreeSymbol, buf: []u8, start_i: usize) usize {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clearWrittenWithEscapeCodes(file_writer: *Io.File.Writer) anyerror!void {
|
||||
pub fn clearWrittenWithEscapeCodes(file_writer: *Io.File.Writer) Io.Writer.Error!void {
|
||||
if (noop_impl or !global_progress.need_clear) return;
|
||||
try file_writer.writeAllUnescaped(clear ++ progress_remove);
|
||||
global_progress.need_clear = false;
|
||||
|
||||
Reference in New Issue
Block a user