Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use match statements for set.join_next() error handling #284

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

schu
Copy link
Owner

@schu schu commented Mar 2, 2025

No description provided.

schu added 2 commits March 1, 2025 16:46
```
warning: this pattern reimplements `Option::unwrap_or`
```
`join_next()` returns type

```
Option<Result<Result<(), Error>, JoinError>>
```

Use `match res { ... }` statements to make the code more readable and
easier to understand.
@schu schu merged commit 6d46ba0 into master Mar 3, 2025
1 check passed
@schu schu deleted the schu/improve-join-next-error-handling branch March 3, 2025 18:11
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.

1 participant