Skip to content

Commit

Permalink
Tell rustfmt about the edition we use (#96)
Browse files Browse the repository at this point in the history
My editor (Emacs) likes to format individual files by sending them to
`rustfmt`. This fails without a configuration file to set the edition
since `rustfmt` (when executed alone, not via `cargo fmt`) defaults to
the good old Rust 2015 edition.
  • Loading branch information
mgeisler authored Mar 5, 2024
1 parent de125ef commit da7263f
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 = "2021"

0 comments on commit da7263f

Please sign in to comment.