diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-01 00:22:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-08-07 10:04:52 -0700 |
| commit | e061445fc227edc8229680bf0330fc3ea60e0e4f (patch) | |
| tree | bd2d5ea790546f8fcf223beaf8b6026722ad34ec /lib/compiler/resinator/errors.zig | |
| parent | 366884ab067f6b2f075cabe372ce4851417579e7 (diff) | |
| download | zig-e061445fc227edc8229680bf0330fc3ea60e0e4f.tar.gz zig-e061445fc227edc8229680bf0330fc3ea60e0e4f.zip | |
std.Io: delete BufferedReader
Diffstat (limited to 'lib/compiler/resinator/errors.zig')
| -rw-r--r-- | lib/compiler/resinator/errors.zig | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/compiler/resinator/errors.zig b/lib/compiler/resinator/errors.zig index 14a001894e..431f14692a 100644 --- a/lib/compiler/resinator/errors.zig +++ b/lib/compiler/resinator/errors.zig @@ -1078,11 +1078,9 @@ const CorrespondingLines = struct { at_eof: bool = false, span: SourceMappings.CorrespondingSpan, file: std.fs.File, - buffered_reader: BufferedReaderType, + buffered_reader: *std.Io.Reader, code_page: SupportedCodePage, - const BufferedReaderType = std.io.BufferedReader(512, std.fs.File.DeprecatedReader); - pub fn init(cwd: std.fs.Dir, err_details: ErrorDetails, line_for_comparison: []const u8, corresponding_span: SourceMappings.CorrespondingSpan, corresponding_file: []const u8) !CorrespondingLines { // We don't do line comparison for this error, so don't print the note if the line // number is different @@ -1101,9 +1099,7 @@ const CorrespondingLines = struct { .buffered_reader = undefined, .code_page = err_details.code_page, }; - corresponding_lines.buffered_reader = BufferedReaderType{ - .unbuffered_reader = corresponding_lines.file.deprecatedReader(), - }; + corresponding_lines.buffered_reader = corresponding_lines.file.reader(); errdefer corresponding_lines.deinit(); var fbs = std.io.fixedBufferStream(&corresponding_lines.line_buf); |
