Skip to content

Fix clippy lint error on ModelEx when derived Eq is getting skipped - #3180

Open
kapalla wants to merge 1 commit into
SeaQL:masterfrom
kapalla:master
Open

Fix clippy lint error on ModelEx when derived Eq is getting skipped#3180
kapalla wants to merge 1 commit into
SeaQL:masterfrom
kapalla:master

Conversation

@kapalla

@kapalla kapalla commented Aug 21, 2026

Copy link
Copy Markdown

PR Info

Resolves #3172

Checklist

  • I have read the AI Policy and confirm that this contribution complies with it.

Release Notes

  • N/A

Comment thread sea-orm-macros/src/derives/model_ex.rs Outdated
Comment thread sea-orm-macros/src/derives/model_ex.rs Outdated

if model_derives_eq {
model_ex_attrs.push(parse_quote! {
#[expect(

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.

It might be better to place allow unconditionally above modelex.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, allow instead of expect. Thank you @Huliiiiii

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.

If we use allow, we don't need to check whether Eq was derived.

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