Skip to content

Commit

Permalink
Add rustfmt.toml to explicitly set the root edition to 2018
Browse files Browse the repository at this point in the history
Some IDEs/plugins do not proprely infer the edition from the workspace
crates, and instead only check the root and default to 2015 since the
root Cargo.toml does not have a project in which to declare an
edition.

See: rust-lang/rustfmt#4454 (comment)
  • Loading branch information
jeckersb committed Dec 15, 2022
1 parent 7aaaf8a commit 5681941
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
edition = "2018"

0 comments on commit 5681941

Please # to comment.