rustfmt
rustfmt copied to clipboard
Format Rust code
Fixes #5995 Added support for rewriting generics on const items.
Can we use the nightly feature `once_cell`?
In this code snippet ```rust self.coords.x -= rng.gen_range(-self.radius / 2. .. self.radius / 2.); ``` Running rust format will change this code to ```rust self.coords.x -= rng.gen_range(-self.radius / 2...self.radius /...
Thanks for your work on rustfmt! The granular width configuration settings are documented to be percentages of `max_width` (e.g. [chain_width](https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#chain_width)). However when `max_width` is set to 100 setting their values...
Resolve #5609 Made the changes suggested by ytmimi in issue #5609. This is my first contribution, so I may have made some mistakes. I would be happy to fix them...
#6013 Prevent add semicolon when changing parentheses style when using lazy_static. If we see that previous parentheses is round and we use the rule for lazy_static then we set flag...
Tracking issue for unstable option: format_generated_files. See [Processes.md, "Stabilising an Option"](https://github.com/rust-lang/rustfmt/blob/master/Processes.md#stabilising-an-option): * [ ] Is the default value correct? * [ ] The design and implementation of the option are...
Hi I've had this issue for a while, but only on macOS. Using the formatter (`cargo fmt --all`) completely ignores any settings I have in `rustfmt.toml`. I do not have...
As has been mentioned a few times on #3347 it is useful to be able to treat doc-comments and normal comments differently.