Skip to content

Commit

Permalink
test: update xmlconf for writer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianprime0509 committed Nov 2, 2024
1 parent 84b4ceb commit 7cd4ce1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xmlconf/src/xmlconf.zig
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ fn runTestParseable(

var canonical_buf = std.ArrayList(u8).init(gpa);
defer canonical_buf.deinit();
var canonical_output = xml.streamingOutput(canonical_buf.writer());
var canonical = canonical_output.writer(.{});
const canonical_output = xml.streamingOutput(canonical_buf.writer());
var canonical = canonical_output.writer(gpa, .{});
defer canonical.deinit();

while (true) {
const node = reader.read() catch |err| switch (err) {
Expand Down Expand Up @@ -286,7 +287,7 @@ fn runTestParseable(
}
},
.element_end => {
try canonical.elementEnd(reader.elementName());
try canonical.elementEnd();
},
.pi => {
try canonical.pi(reader.piTarget(), try reader.piData());
Expand Down

0 comments on commit 7cd4ce1

Please sign in to comment.