forked from mirror/vulkan-zig
allocgate 2.0
This commit is contained in:
@@ -481,8 +481,8 @@ fn parseElement(parser: *Parser, alloc: Allocator, comptime kind: ElementKind) !
|
||||
const element = try alloc.create(Element);
|
||||
element.* = .{
|
||||
.tag = try alloc.dupe(u8, tag),
|
||||
.attributes = attributes.toOwnedSlice(),
|
||||
.children = children.toOwnedSlice(),
|
||||
.attributes = try attributes.toOwnedSlice(),
|
||||
.children = try children.toOwnedSlice(),
|
||||
};
|
||||
return element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user