Skip to content

editoast: derive: replace #[view_error(name)] by path - #18770

Merged
leovalais merged 1 commit into
devfrom
lva/nqltzwsptnwm
Sep 25, 2026
Merged

leovalais merged 1 commit into
devfrom
lva/nqltzwsptnwm

Conversation

@leovalais

@leovalais leovalais commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Use the Rust path syntax and let the macro turn it into a label. Avoids confusion about which separator to use (: vs ::). The name path also emphasizes that we can re-scope errors.

I find that better, but I admit it's a little opinionated. Lmk.

Also acts as a middle ground for #11545 (comment).

@leovalais
leovalais requested a review from a team as a code owner September 24, 2026 16:03
@github-actions github-actions Bot added the area:editoast Work on Editoast Service label Sep 24, 2026
@leovalais leovalais self-assigned this Sep 24, 2026
@leovalais
leovalais enabled auto-merge September 24, 2026 16:03
Use the Rust path syntax and let the macro turn it into a label.
Avoids confusion about which separator to use (`:` vs `::`).
The name `path` also emphasizes that we can re-scope errors.

Signed-off-by: Léo VALAIS <leovalais+git@proton.me>
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ API changes

This Pull Request introduces some changes in the API:

  • please own it: notify or even prepare dedicated PR(s) to consumer projects

@woshilapin woshilapin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems reasonable to me.

@leovalais
leovalais added this pull request to the merge queue Sep 25, 2026
Merged via the queue into dev with commit e12cc53 Sep 25, 2026
40 checks passed
@leovalais
leovalais deleted the lva/nqltzwsptnwm branch September 25, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:editoast Work on Editoast Service kind:api-change

Projects

Status: Awaiting Validation

Development

Successfully merging this pull request may close these issues.

2 participants