File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ rust_version: 1.85.0
9
9
# used in the operator-rs repository.
10
10
rust_nightly_version : nightly-2025-01-15
11
11
12
+ # This edition is mostly used for rustfmt commands and the rustfmt config file. The edition should
13
+ # be kept in line with the edition in the operator-rs repository.
14
+ rust_edition : 2024
15
+
12
16
# IMPORTANT
13
17
# If you change the Hadolint version here, make sure to also change the hook
14
18
# refs in the local and templated .pre-commit-config.yaml files.
Original file line number Diff line number Diff line change 2
2
"rust-analyzer.rustfmt.overrideCommand": [
3
3
"rustfmt",
4
4
"+{[rust_nightly_version}]",
5
+ "--edition",
6
+ "{[rust_edition}]",
5
7
"--"
6
8
],
7
9
}
Original file line number Diff line number Diff line change 2
2
# It's also ok to use the stable toolchain by simple running "cargo fmt", but using the nigthly formatter is prefered.
3
3
4
4
# https://doc.rust-lang.org/nightly/edition-guide/rust-2024/rustfmt-style-edition.html
5
- style_edition = " 2024 "
5
+ style_edition = "{[rust_edition}] "
6
6
imports_granularity = "Crate"
7
7
group_imports = "StdExternalCrate"
8
8
reorder_impl_items = true
You can’t perform that action at this time.
0 commit comments