From 92f896ddd7cd23e98d0fdf61e2cb67a95bc576b6 Mon Sep 17 00:00:00 2001 From: Zack Radisic <56137411+zackradisic@users.noreply.github.com> Date: Thu, 7 Aug 2025 19:18:12 -0700 Subject: [PATCH] use `.orderedRemove(...)` instead of `.swapRemove(...)` --- src/shell/Yield.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/Yield.zig b/src/shell/Yield.zig index 2c05239afe..e678947ea0 100644 --- a/src/shell/Yield.zig +++ b/src/shell/Yield.zig @@ -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(); }