commit ed55b2ef1723c29edf53ba332e7cb18c1c738bff (tree) parent 8469a44c9cb5110f8db24c26f5f50ae91e35b3ce Author: Andrew Kelley <andrew@ziglang.org> Date: Sat, 22 Feb 2025 15:53:36 -0800 update to new pop API Diffstat:
| M | lib/std/zig/render.zig | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/zig/render.zig b/lib/std/zig/render.zig @@ -372,7 +372,7 @@ fn renderExpression(r: *Render, node: Ast.Node.Index, space: Space) Error!void { if (!ais.indentStackEmpty() and token_tags[i] != .colon and ((token_tags[i] != .semicolon and token_tags[i] != .comma) or - ais.lastSpaceModeIndent() < ais.currentIndent())) + ais.lastSpaceModeIndent() < ais.currentIndent())) { ais.popIndent(); try ais.pushIndent(.normal); @@ -3509,7 +3509,7 @@ fn AutoIndentingStream(comptime UnderlyingWriter: type) type { } pub fn popIndent(self: *Self) void { - if (self.indent_stack.pop().realized) { + if (self.indent_stack.pop().?.realized) { assert(self.indent_count > 0); self.indent_count -= 1; }