Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maksym-arutyunyan committed Sep 16, 2024
1 parent 18e9189 commit b12a581
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/strategies/rust_derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,21 @@ fn aphabetical_sort(traits: Vec<&str>) -> Vec<&str> {

fn canonical_sort(traits: Vec<&str>) -> Vec<&str> {
// Define the canonical order of traits
priority_sort(traits, &[
"Copy",
"Clone",
"Eq",
"PartialEq",
"Ord",
"PartialOrd",
"Hash",
"Debug",
"Display",
"Default",
])
priority_sort(
traits,
&[
"Copy",
"Clone",
"Eq",
"PartialEq",
"Ord",
"PartialOrd",
"Hash",
"Debug",
"Display",
"Default",
],
)
}

fn re_derive_begin() -> Regex {
Expand Down

0 comments on commit b12a581

Please sign in to comment.