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

Box<T> unsupported #1

Open
io12 opened this issue Aug 25, 2020 · 1 comment
Open

Box<T> unsupported #1

io12 opened this issue Aug 25, 2020 · 1 comment

Comments

@io12
Copy link

io12 commented Aug 25, 2020

If the type being serialized has fields containing Box<T>, the field's expression is assigned to the inner value, not wrapped in Box::new(), which causes a compiler error.

@burdges
Copy link

burdges commented Feb 11, 2021

As in #2 serde causes this by applying Deref fully. It's doable with post-processing, but really one wants some new formatter traits, similar to Debug and Display, and just avoid serde entirely.

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

No branches or pull requests

2 participants