Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest #[serde(flatten)] in error message when writing #[serde(inline)] #2236

Open
FSMaxB opened this issue Jun 29, 2022 · 0 comments
Open

Comments

@FSMaxB
Copy link

FSMaxB commented Jun 29, 2022

I regularly find myself accidentally writing #[serde(inline)] as a field attribute instead of #[serde(flatten)].

Currently the compile error is unknown serde field attribute 'inline'.

I suggest having the error message be unknown serde field attribute 'inline', did you mean 'flatten'? instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant