Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(.rustfmt.toml): specify Rust edition 2021 (#1722)
* fix(.rustfmt.toml): specify Rust edition 2021 Emacs' popular Rust plugin Rustic [1] uses `rustfmt` to format code. `rustfmt` only picks up the Rust edition from `Cargo.toml` when executed through `cargo fmt` [2] [3]. This commit duplicates the Rust edition in the `.rustfmt.toml` file. Thus all users of `rustfmt` (whether through `cargo fmt` or plain `rustfmt`) will get formatting according to their Rust edition, e.g. helpful when interacting with `async` code. [1]: https://github.com/brotzeit/rustic [2]: https://github.com/brotzeit/rustic?tab=readme-ov-file#edition-2018 [3]: https://github.com/rust-lang/rustfmt?tab=readme-ov-file#rusts-editions * Document keeping edition statements in sync
- Loading branch information