ron-rs/ron

Trailing comma in Some()

Closed this issue · 1 comments

I'm parsing result from rustc -Z unpretty=ast, which yields a customized format of ron.
My plan is to use regex and ron to parse the result.
Currently Some(1,) doesn't work.

Expected closing `)`

Is it supposed to work?

@qiujiangkun Thank you for the bug report - this was indeed wrong and I've pushed a fix for it - trailing commas should now work