Skip to content

Commit

Permalink
Use Ok(()) instead of the toilet closure
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Oct 16, 2023
1 parent cc78620 commit 27a0095
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test-harness/src/ghciwatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 27a0095

Please sign in to comment.