Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sea-orm-macros/src/derives/model_ex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ pub fn expand_sea_orm_model(input: ItemStruct, compact: bool) -> syn::Result<Tok

list.parse_nested_meta(|meta| {
if meta.path.is_ident("Eq") {
// skip
// Pass through Eq so clippy's `derive_partial_eq_without_eq` doesn't fire
new_list.push(parse_quote!(Eq));
} else if meta.path.is_ident("DeriveEntityModel") {
// replace macro
new_list.push(parse_quote!(DeriveModelEx));
Expand Down