From 27a009513867e70b604e0c9458c38e6dd3b1f12a Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Mon, 16 Oct 2023 12:08:32 -0700 Subject: [PATCH] Use `Ok(())` instead of the toilet closure --- test-harness/src/ghciwatch.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test-harness/src/ghciwatch.rs b/test-harness/src/ghciwatch.rs index 2e5bae4b..d31fd5cd 100644 --- a/test-harness/src/ghciwatch.rs +++ b/test-harness/src/ghciwatch.rs @@ -428,9 +428,8 @@ impl GhciWatch { /// Wait until `ghciwatch` reloads the `ghci` session due to changed modules. pub async fn wait_until_reload(&mut self) -> miette::Result<()> { // TODO: It would be nice to verify which modules are changed. - self.wait_for_log(BaseMatcher::ghci_reload()) - .await - .map(|_| ()) + self.wait_for_log(BaseMatcher::ghci_reload()).await?; + Ok(()) } /// Wait until `ghciwatch` adds new modules to the `ghci` session.