Skip to content

Stop using assert!() with is_empty() - #273

Merged
morehouse merged 1 commit into
masterfrom
fix_clippy
Oct 1, 2026
Merged

morehouse merged 1 commit into
masterfrom
fix_clippy

Conversation

@morehouse

Copy link
Copy Markdown
Collaborator

The latest clippy now flags this pattern since when the assert fails we don't get to see the actual contents. It's better to use assert_eq!() instead.

Fixes the CI failures observed at https://github.com/lnfuzz/smite/actions/runs/36879718055/job/110428080804.

The latest clippy now flags this pattern since when the assert fails we
don't get to see the actual contents.  It's better to use assert_eq!()
instead.

@erickcestari erickcestari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@morehouse
morehouse merged commit 8d53f33 into master Oct 1, 2026
5 checks passed
@morehouse
morehouse deleted the fix_clippy branch October 1, 2026 18:26
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