From 5c9e3b54138709d860213b2260fe631341664ae0 Mon Sep 17 00:00:00 2001 From: Teo Koon Peng Date: Tue, 18 Feb 2025 07:22:42 +0000 Subject: [PATCH] avoid conflict in take() Signed-off-by: Teo Koon Peng --- src/builder.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/builder.rs b/src/builder.rs index 0661023a..4476d060 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -1198,7 +1198,9 @@ mod tests { context.command(|commands| commands.request(input, workflow).take_response()); context.run_with_conditions(&mut promise, Duration::from_secs(2)); - assert!(promise.take().available().is_some_and(|v| v == expectation)); + assert!(Promise::take(&mut promise) + .available() + .is_some_and(|v| v == expectation)); assert!(context.no_unhandled_errors()); } }