Skip to content

Use assert_matches! where appropriate - #4

Merged
noahkawaguchi merged 2 commits into
mainfrom
assert-matches
Jun 13, 2026
Merged

Use assert_matches! where appropriate#4
noahkawaguchi merged 2 commits into
mainfrom
assert-matches

Conversation

@noahkawaguchi

Copy link
Copy Markdown
Owner

This PR replaces uses of assert!(...is_err()) and assert!(...is_ok()) with assert_matches! because assert_matches! provides more information on failure. This requires deriving Debug for several structs, but this is conditionally compiled to only be included in test builds.

@noahkawaguchi
noahkawaguchi merged commit 65d87a9 into main Jun 13, 2026
9 checks passed
@noahkawaguchi
noahkawaguchi deleted the assert-matches branch June 13, 2026 22:59
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