Skip to content

Commit ed55b2e

Browse files
committed
update to new pop API
1 parent 8469a44 commit ed55b2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/zig/render.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ fn renderExpression(r: *Render, node: Ast.Node.Index, space: Space) Error!void {
372372
if (!ais.indentStackEmpty() and
373373
token_tags[i] != .colon and
374374
((token_tags[i] != .semicolon and token_tags[i] != .comma) or
375-
ais.lastSpaceModeIndent() < ais.currentIndent()))
375+
ais.lastSpaceModeIndent() < ais.currentIndent()))
376376
{
377377
ais.popIndent();
378378
try ais.pushIndent(.normal);
@@ -3509,7 +3509,7 @@ fn AutoIndentingStream(comptime UnderlyingWriter: type) type {
35093509
}
35103510

35113511
pub fn popIndent(self: *Self) void {
3512-
if (self.indent_stack.pop().realized) {
3512+
if (self.indent_stack.pop().?.realized) {
35133513
assert(self.indent_count > 0);
35143514
self.indent_count -= 1;
35153515
}

0 commit comments

Comments
 (0)