From 672f2b43524081bbde7bbf2f3ddcc283a3c1e043 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 20:19:43 +0200 Subject: [PATCH] mind-self-run tests: borrow the outcome instead of moving it (the previous two commits did not compile the lib tests) Co-Authored-By: Claude Sonnet 5.5 --- crates/mind-body/src/self_run/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mind-body/src/self_run/tests.rs b/crates/mind-body/src/self_run/tests.rs index 48ce57b..b423ce3 100644 --- a/crates/mind-body/src/self_run/tests.rs +++ b/crates/mind-body/src/self_run/tests.rs @@ -625,7 +625,7 @@ fn a_result_before_any_request_closes_the_input_once_and_the_run_ends_with_a_typ let ran = carry_with(&Seen::of(&with_run()), vec![Out(result_line())], Some(1), false); assert_eq!(ran.count(&Event::InputClosed), 1); assert_eq!(ran.ended(), (Cause::Own, Some(1), 0, 0)); - assert_eq!(ran.outcome.unwrap().exit_status(), 1); + assert_eq!(ran.outcome.as_ref().unwrap().exit_status(), 1); assert_eq!(ran.count(&Event::Stopped(Stop::Interrupt)), 0); }