rustfmt
https://github.com/rust-lang/rustfmt
Rust
Format Rust code
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Rust not yet supported4 Subscribers
Add a CodeTriage badge to rustfmt
Help out
- Issues
- rustfmt cannot format code example with long `#`-hiding line
- NOT token (!) inside a macro call inside `macro_rules!` erroneously de-indented (non-idempotency)
- feat: add `trim_final_newlines` option
- thread 'main' panicked at 'bad span: `.`: ``', src/tools/rustfmt/src/source_map.rs:52:13
- max_width is not stable/deterministic
- `wrap_comments` sometimes breaks code blocks in lists
- Misformatting: excessive indentation due to `dyn` in type alias
- Replace `issue_*` with `issue-*` in test filenames for consistency
- Break lines for attributes in otherwise vertical display (argument / type attributes)
- inconsistent behavior of `wrap_comments` (merges short lines in lists)
- Docs
- Rust not yet supported