Skip to content

Commit

Permalink
ensure ordering of config by using .toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
IVIURRAY committed Jan 7, 2024
1 parent 9787938 commit 8278e4d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
3 changes: 3 additions & 0 deletions tests/config/issue-5801-v1.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
max_width = 120
version = "One"
attr_fn_like_width = 120
3 changes: 3 additions & 0 deletions tests/config/issue-5801-v2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
max_width = 120
version = "Two"
attr_fn_like_width = 120
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// rustfmt-max_width: 120
// rustfmt-version: One
// rustfmt-attr_fn_like_width: 120
// rustfmt-config: issue-5801-v1.toml

pub enum Severity {
#[something(AAAAAAAAAAAAA, BBBBBBBBBBBBBB, CCCCCCCCCCCCCCCC, DDDDDDDDDDDDD, EEEEEEEEEEEE, FFFFFFFFFFF, GGGGGGGGGGG)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// rustfmt-max_width: 120
// rustfmt-version: Two
// rustfmt-attr_fn_like_width: 120
// rustfmt-config: issue-5801-v2.toml

pub enum Severity {
#[something(AAAAAAAAAAAAA, BBBBBBBBBBBBBB, CCCCCCCCCCCCCCCC, DDDDDDDDDDDDD, EEEEEEEEEEEE, FFFFFFFFFFF, GGGGGGGGGGG)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// rustfmt-max_width: 120
// rustfmt-version: One
// rustfmt-attr_fn_like_width: 120
// rustfmt-config: issue-5801-v1.toml

pub enum Severity {
#[something(
Expand Down

0 comments on commit 8278e4d

Please sign in to comment.