Skip to content

Use format_ident! instead of Ident::new(&format!(...)) in model_ex (#3119)#3122

Open
upuddu wants to merge 1 commit into
SeaQL:masterfrom
upuddu:refactor/3119-format-ident
Open

Use format_ident! instead of Ident::new(&format!(...)) in model_ex (#3119)#3122
upuddu wants to merge 1 commit into
SeaQL:masterfrom
upuddu:refactor/3119-format-ident

Conversation

@upuddu

@upuddu upuddu commented Jul 7, 2026

Copy link
Copy Markdown

Small step toward #3119, which asks to clean up the macros one category at a time. This handles the "manually constructed Idents" category: the two Ident::new(&format!(...), span) calls in sea-orm-macros/src/derives/model_ex.rs become format_ident!(..., span = ...), matching how idents are already built elsewhere in the crate. Purely a readability change — the generated tokens are identical.

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.

1 participant