Skip to content

fix: pass through Eq derive in ModelEx to fix clippy::derive_partial_eq_without_eq (issue #3172) - #3191

Closed
yunaremaia wants to merge 1 commit into
SeaQL:masterfrom
yunaremaia:fix/model-ex-eq-derive
Closed

fix: pass through Eq derive in ModelEx to fix clippy::derive_partial_eq_without_eq (issue #3172)#3191
yunaremaia wants to merge 1 commit into
SeaQL:masterfrom
yunaremaia:fix/model-ex-eq-derive

Conversation

@yunaremaia

Copy link
Copy Markdown

The model_ex macro was silently stripping the Eq derive from the generated ModelEx struct, which triggers clippy::derive_partial_eq_without_eq when -D warnings or clippy::nursery is enabled.

Eq is a trivial marker trait that is always valid when PartialEq is present, so passing it through instead of skipping it is safe and correct.

Fixes #3172.

Assisted-by: poolside/laguna-s-2.1

…ial_eq_without_eq

The model_ex macro was silently stripping the Eq derive from the
generated ModelEx struct, which triggers clippy::derive_partial_eq_without_eq
when -D warnings or clippy::nursery is enabled. Eq is a trivial marker
trait that is always valid when PartialEq is present, so passing it
through instead of skipping it is safe and correct.

Fixes SeaQL#3172.
@Huliiiiii

Huliiiiii commented Sep 2, 2026

Copy link
Copy Markdown
Member

Slop.

Eq is a trivial marker trait that is always valid when PartialEq is present, so passing it through instead of skipping it is safe and correct.

Have you heard of floats?

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.

Eq skipped in ModelEx

2 participants