Skip to content

Commit

Permalink
refactored matching of Workspacenumbercomparisonenum
Browse files Browse the repository at this point in the history
  • Loading branch information
hbere committed Jun 5, 2024
1 parent 1e86a69 commit dc9cc7d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ pub fn sort_ipcworkspace(
) {
(Some(number1), Some(number2)) => match number1.cmp(&number2) {
Ordering::Equal => workspace1.name.cmp(&workspace2.name),
// Ordering(ordering) => ordering,
Ordering::Greater => Ordering::Greater,
Ordering::Less => Ordering::Less,
ordering => ordering,
},
(Some(_num), None) => Ordering::Greater,
(None, Some(_num)) => Ordering::Less,
Expand Down

0 comments on commit dc9cc7d

Please sign in to comment.