use .orderedRemove(...) instead of .swapRemove(...)

This commit is contained in:
Zack Radisic
2025-08-07 19:18:12 -07:00
parent 3b1842723e
commit 92f896ddd7

View File

@@ -104,7 +104,7 @@ pub const Yield = union(enum) {
if (x.state == .done) {
// remove it from the pipeline stack as calling `.next()` will now deinit it
if (std.mem.indexOfScalar(*Pipeline, pipeline_stack.items, x)) |idx| {
_ = pipeline_stack.swapRemove(idx);
_ = pipeline_stack.orderedRemove(idx);
}
continue :state x.next();
}