Skip to content

Commit 7ca1cf3

Browse files
chore(fmt): strip unstable rustfmt options, keep stable-only config
Removed 14 unstable options (brace_style, indent_style, format_macro_bodies, skip_macro_invocations, etc.) that were silently ignored by stable rustfmt. Updated edition from 2018 to 2021. Stable config only. Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
1 parent 69b7c2d commit 7ca1cf3

3 files changed

Lines changed: 6 additions & 22 deletions

File tree

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "crates/burn/upstream"]
22
path = crates/burn/upstream
3-
url = https://github.com/tracel-ai/burn.git
3+
url = https://github.com/AdaWorldAPI/burn.git

crates/burn/upstream

rustfmt.toml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
1-
edition = "2018"
1+
edition = "2021"
2+
max_width = 120
23
array_width = 100
34
chain_width = 60
45
fn_call_width = 100
5-
max_width = 120
6-
brace_style = "AlwaysNextLine"
7-
control_brace_style = "AlwaysSameLine"
8-
fn_params_layout = "Compressed" # ?
9-
format_macro_bodies = false
10-
imports_granularity = "Preserve"
11-
imports_indent = "Block"
12-
imports_layout = "HorizontalVertical"
13-
inline_attribute_width = 0
14-
indent_style = "Block"
15-
match_arm_blocks = false
6+
fn_params_layout = "Compressed"
167
match_arm_leading_pipes = "Preserve"
178
merge_derives = false
18-
overflow_delimited_expr = true
19-
reorder_modules = false # impacts rustdoc order
9+
reorder_modules = false
2010
short_array_element_width_threshold = 32
21-
skip_macro_invocations = ["*"]
22-
unstable_features = true
23-
where_single_line = true
24-
25-
# ignored files
26-
ignore = []

0 commit comments

Comments
 (0)