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 cf3a8f3043
commit 93a81a3898
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)
else {
t.sink.setDir(null);
t.stack.pop().destroy(t);
t.stack.pop().?.destroy(t);
}
}
}