Skip to content

Commit 35aade7

Browse files
committed
cleanup of redundant patterns
1 parent fd0ea74 commit 35aade7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sort.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub(crate) fn version_sort(a: &str, b: &str) -> std::cmp::Ordering {
155155
std::cmp::Ordering::Equal => {
156156
continue;
157157
}
158-
order @ _ => return order,
158+
order => return order,
159159
}
160160
}
161161
(
@@ -182,7 +182,7 @@ pub(crate) fn version_sort(a: &str, b: &str) -> std::cmp::Ordering {
182182
}
183183
continue;
184184
}
185-
order @ _ => return order,
185+
order => return order,
186186
},
187187
},
188188
}

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ fn join_bounds_inner(
12971297
// or the single item is of type `Trait`,
12981298
// and any of the internal arrays contains more than one item;
12991299
let retry_with_force_newline = match context.config.style_edition() {
1300-
style_edition @ _ if style_edition <= StyleEdition::Edition2021 => {
1300+
style_edition if style_edition <= StyleEdition::Edition2021 => {
13011301
!force_newline
13021302
&& items.len() > 1
13031303
&& (result.0.contains('\n') || result.0.len() > shape.width)

0 commit comments

Comments
 (0)