authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 20:00:11 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-26 20:00:11 -07:00
log43ce0dc6530f85b7d1ea6c9f9406e6e9bd9aa538
tree67e64faf5b40170dbe9874d32eda6227c0e8f966
parent50e32dd75d6577813c092d81bc217dffe6a2ae26
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

reduce generic instantiation when shouldindent is false


1 files changed, 1 insertions(+), 1 deletions(-)

src/lib.zig+1-1
...@@ -108,7 +108,7 @@ fn doInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Val...@@ -108,7 +108,7 @@ fn doInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Val
108 inline for (v.children) |it| {108 inline for (v.children) |it| {
109 try do(alloc, writer, it, data, ctx, .{109 try do(alloc, writer, it, data, ctx, .{
110 .Ctx = opts.Ctx,110 .Ctx = opts.Ctx,
111 .indent = opts.indent + 1,111 .indent = if (shouldindent) opts.indent + 1 else opts.indent,
112 .doindent = shouldindent,112 .doindent = shouldindent,
113 .doindent2 = opts.doindent2,113 .doindent2 = opts.doindent2,
114 });114 });