ArrayList.pop now returns optional like removed popOrNull

See https://github.com/ziglang/zig/pull/22720 .

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
Eric Joldasov 2025-02-13 22:49:32 +05:00
parent 9b98fb4c36
commit 1e55747cf7
No known key found for this signature in database
GPG key ID: 5C9C69060686B588

View file

@ -276,7 +276,7 @@ const Thread = struct {
if (entry) |e| t.scanOne(d, e.name) if (entry) |e| t.scanOne(d, e.name)
else { else {
t.sink.setDir(null); t.sink.setDir(null);
t.stack.pop().destroy(t); t.stack.pop().?.destroy(t);
} }
} }
} }