Skip to content

Commit f1e79b5

Browse files
authored
Add .rustfmt.toml (#369)
Unlike `cargo fmt`, `rustfmt` is agnostic to `Cargo.toml` and does not pick up the edition from within that file. Instead, `rustfmt` decides what edition to use based on what is specified inside of `.rustfmt.toml` or if the edition is explicitly passed into the CLI command. Having this file helps contributors who have configured auto formatting, on file save or the like, using `rustfmt` rather than `cargo fmt`.
1 parent 518ff05 commit f1e79b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
edition = "2021"

0 commit comments

Comments
 (0)