From 3ff66e62b1e8de0ffec6060a314fe3c95a601de9 Mon Sep 17 00:00:00 2001 From: Yunare Maia Date: Thu, 3 Sep 2026 13:22:46 +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, causing clippy::derive_partial_eq_without_eq when -D warnings or nursery is enabled. Eq is a marker trait; users who write #[derive(Eq)] opt in. If their model has f64/f32 fields, the compiler errors as expected. Fixes #3172. --- sea-orm-macros/src/derives/model_ex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-macros/src/derives/model_ex.rs b/sea-orm-macros/src/derives/model_ex.rs index b1dc78d54..a2057b500 100644 --- a/sea-orm-macros/src/derives/model_ex.rs +++ b/sea-orm-macros/src/derives/model_ex.rs @@ -98,7 +98,7 @@ pub fn expand_sea_orm_model(input: ItemStruct, compact: bool) -> syn::Result