Skip to content

Commit

Permalink
Remove mention of rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 8, 2023
1 parent 37a0e2e commit a901e98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,13 @@ macro.
## Non-macro code generators

When using `quote` in a build.rs or main.rs and writing the output out to a
file, consider having the code generator pass the tokens through [prettyplease] or [rustfmt]
file, consider having the code generator pass the tokens through [prettyplease]
before writing. This way if an error occurs in the generated code it is
convenient for a human to read and debug.

Be aware that no kind of hygiene or span information is retained when tokens are
written to a file; the conversion from tokens to source code is lossy.

[rustfmt]: https://github.com/rust-lang/rustfmt
[prettyplease]: https://github.com/dtolnay/prettyplease

<br>
Expand Down

0 comments on commit a901e98

Please sign in to comment.