Skip to content

Conversation

alexcrichton
Copy link
Member

  • Support any return value, not just Result<()>
  • Use FnOnce instead of FnMut

This meant that many Ok(()) values could be dropped, but other values using ? needed to explicitly annotate the return type which is done by returning anyhow::Ok(()) to force the error type.

* Support any return value, not just `Result<()>`
* Use `FnOnce` instead of `FnMut`

This meant that many `Ok(())` values could be dropped, but other values
using `?` needed to explicitly annotate the return type which is done by
returning `anyhow::Ok(())` to force the error type.
@alexcrichton alexcrichton requested a review from a team as a code owner June 10, 2025 14:48
@alexcrichton alexcrichton requested review from abrown and removed request for a team June 10, 2025 14:48
Copy link
Member

@saulecabrera saulecabrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@saulecabrera saulecabrera added this pull request to the merge queue Jun 10, 2025
Merged via the queue into bytecodealliance:main with commit f3c320d Jun 10, 2025
41 checks passed
@alexcrichton alexcrichton deleted the winch-generalize branch June 10, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants