You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We make a few assumptions about formatters, which allows us to keep a simple design. So we should communicate to users and formatters out there what they are.
prjfmt is responsible for traversing the filesystem.
The formatter is a command-line tool that takes a list of files to format at the end of the argument list. Eg: rustfmt --edition 2018 src/main.rs src/lib.rs src/other.rs. Where --edition 2018 is an option, and src/main.rssrc/lib.rs and src/other.rs are the files to format.
The formatter reads each of the files, formats them, and writes them back to the original location. The writing only happens if the file content has changed.
The text was updated successfully, but these errors were encountered:
Describe what interface a formatter should have.
We make a few assumptions about formatters, which allows us to keep a simple design. So we should communicate to users and formatters out there what they are.
prjfmt
is responsible for traversing the filesystem.rustfmt --edition 2018 src/main.rs src/lib.rs src/other.rs
. Where--edition 2018
is an option, andsrc/main.rs
src/lib.rs
andsrc/other.rs
are the files to format.The text was updated successfully, but these errors were encountered: