aboutsummaryrefslogtreecommitdiff
path: root/src/content.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/content.zig')
-rw-r--r--src/content.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/content.zig b/src/content.zig
index b1ac0c7..96a361a 100644
--- a/src/content.zig
+++ b/src/content.zig
@@ -13,7 +13,6 @@ pub const Error = error{ ModifierNotClosed, IllegalPlacement } || Allocator.Erro
pub fn parse(alloc: Allocator, l: *Lexer) Error!Element {
var content = try Element.Empty.init(alloc);
- errdefer content.deinit(alloc);
const v = l.next().?;
switch (v.kind) {
.literal => {
@@ -30,7 +29,6 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element {
fn parseModifier(alloc: Allocator, l: *Lexer, knd: Token.Kind, comptime tag: []const u8) Error!Element {
var el = try Element.Simple(tag).init(alloc);
- errdefer el.deinit(alloc);
while (l.peek()) |next| {
if (next.kind == knd) {
// consuming the finisher