| ... | ... | @@ -308,7 +308,7 @@ pub fn appendRemaining( |
| 308 | 308 | list: *ArrayList(u8), |
| 309 | 309 | limit: Limit, |
| 310 | 310 | ) LimitedAllocError!void { |
| 311 | | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.items); |
| 311 | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.allocatedSlice()); |
| 312 | 312 | a.writer.end = list.items.len; |
| 313 | 313 | list.* = .empty; |
| 314 | 314 | defer { |
| ... | ... | @@ -332,7 +332,7 @@ pub fn appendRemaining( |
| 332 | 332 | pub const UnlimitedAllocError = Allocator.Error || ShortError; |
| 333 | 333 | |
| 334 | 334 | pub fn appendRemainingUnlimited(r: *Reader, gpa: Allocator, list: *ArrayList(u8)) UnlimitedAllocError!void { |
| 335 | | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.items); |
| 335 | var a: std.Io.Writer.Allocating = .initOwnedSlice(gpa, list.allocatedSlice()); |
| 336 | 336 | a.writer.end = list.items.len; |
| 337 | 337 | list.* = .empty; |
| 338 | 338 | defer { |