Skip to content

Commit 8f4294f

Browse files
committed
Rust Format Botches Lib Ordering by Problem Number
1 parent 437ac89 commit 8f4294f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
reorder_modules = false

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ pub mod container_with_most_water; // 11
2222

2323
pub mod longest_common_prefix; // 14
2424

25-
pub mod merge_two_sorted_lists;
2625
pub mod remove_nth_node_from_end_of_list; // 19
27-
pub mod valid_parentheses; // 20 // 21
26+
pub mod valid_parentheses; // 20
27+
pub mod merge_two_sorted_lists; // 21
2828

2929
pub mod swap_nodes_in_pairs; // 24
3030

@@ -47,8 +47,8 @@ pub mod simplify_path; // 71
4747

4848
pub mod remove_duplicates_from_sorted_array_ii; // 80
4949

50-
pub mod remove_duplicates_from_sorted_list;
51-
pub mod remove_duplicates_from_sorted_list_ii; // 82 // 83
50+
pub mod remove_duplicates_from_sorted_list_ii; // 82
51+
pub mod remove_duplicates_from_sorted_list; // 83
5252

5353
pub mod reverse_linked_list_ii; // 92
5454

@@ -130,8 +130,8 @@ pub mod find_largest_value_in_each_tree_row; // 515
130130

131131
pub mod minimum_absolute_difference_in_bst; // 530
132132

133-
pub mod diameter_of_binary_tree;
134-
pub mod zero_one_matrix; // 542 // 543
133+
pub mod zero_one_matrix; // 542
134+
pub mod diameter_of_binary_tree; // 543
135135

136136
pub mod number_of_provinces; // 547
137137

0 commit comments

Comments
 (0)