-
Notifications
You must be signed in to change notification settings - Fork 127
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
No space after semicolons & comma after struct fields is not "pretty" #290
Labels
feature
A new feature for the syntax or library.
Comments
I think having spaces after commas would still be nice there. But the idea was to stop breaking the lines, at least.
|
Issue has had no activity in the last 180 days and is going to be closed in 7 days if no further activity occurs |
comment |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider this:
https://docs.rs/ron/0.6.2/ron/ser/struct.PrettyConfig.html#structfield.depth_limit
The types after this depth should still follow normal formatting guidelines like having spaces after semicolons & commas.
What does this even mean? That everything after that level is not pretty-printed?
I use
.with_depth_limit(4)
but I don't want everything beyond that depth to not be pretty,I just want to limit the depth for expanding types to multiple lines.
Actually what I'd really want is some
max_width
limit like in rustfmt to say that types should be written on one line unless they go over that limit. I thought that's what the depth limit is for, but apprently not.Can you please add something like
max_width
? :)The text was updated successfully, but these errors were encountered: