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

chore: assert_eq! on Ok instead of unwrapping where possible #297

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Sep 23, 2023

Minor thing for better error messages in case of failure

A lot of times this is not possible because error types do not implement Eq, or deref coersion can't happen when comparing results (e.g. Result<String> vs Result<&str>)

@DaniPopes DaniPopes enabled auto-merge (squash) September 23, 2023 22:36
@DaniPopes DaniPopes merged commit 5733dc1 into main Sep 24, 2023
18 checks passed
@DaniPopes DaniPopes deleted the dani/test-ok branch September 24, 2023 18:14
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