Closed antoine-de closed 5 years ago
Nice catch. Thank you very much for the fix and the test. I took the chance to take you commit and to put some code on top of it in #11. My fix is also not very nice, but it is type safe.
I think there is a better way in syn to define parsers, like the example in this function https://docs.rs/syn/0.15.33/syn/struct.Path.html#method.parse_mod_style. However, I need first to learn how to do this in our case.
great, thanks!
can I close this or do you want to keep it open to check parse_mod_style
?
@antoine-de We can close this.
Hi,
Thanks for the great work on this lib.
I'm stumbling upon a problem with the serde(flatten) support.
The following example does not work:
the following expect fails.
It comes from the fact that the
type
name seems to depend on the scope, so it's eitherA
ornested::A
depending on the context.I'm a complete noob with
syn
, so I made an ugly fix spliting thety
name by" .. "
:see_no_evil:Isn't there a better way to get an unmangled name ?
Do you want a PR with this ?