From 8b47804bd5445f7e6c4416a9edb812b1002843a1 Mon Sep 17 00:00:00 2001 From: Yunare Date: Wed, 2 Sep 2026 18:12:20 +0000 Subject: [PATCH] fix: pass through Eq derive in ModelEx to satisfy clippy::derive_partial_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 #3172. --- sea-orm-macros/src/derives/model_ex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sea-orm-macros/src/derives/model_ex.rs b/sea-orm-macros/src/derives/model_ex.rs index b1dc78d54..69903c513 100644 --- a/sea-orm-macros/src/derives/model_ex.rs +++ b/sea-orm-macros/src/derives/model_ex.rs @@ -98,7 +98,8 @@ pub fn expand_sea_orm_model(input: ItemStruct, compact: bool) -> syn::Result