From da7263fe26a248403cdfdc9fc4e147d332fdcaa7 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Tue, 5 Mar 2024 22:20:32 +0100 Subject: [PATCH] Tell `rustfmt` about the edition we use (#96) 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. --- rustfmt.toml | 1 + 1 file changed, 1 insertion(+) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..3a26366d --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2021"