Skip to content

cleanup of redundant patterns #6546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cleanup of redundant patterns
  • Loading branch information
jogru0 committed Apr 21, 2025
commit 35aade76ee9093785022811a991d7b4cdff55093
4 changes: 2 additions & 2 deletions src/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub(crate) fn version_sort(a: &str, b: &str) -> std::cmp::Ordering {
std::cmp::Ordering::Equal => {
continue;
}
order @ _ => return order,
order => return order,
}
}
(
Expand All @@ -182,7 +182,7 @@ pub(crate) fn version_sort(a: &str, b: &str) -> std::cmp::Ordering {
}
continue;
}
order @ _ => return order,
order => return order,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ fn join_bounds_inner(
// or the single item is of type `Trait`,
// and any of the internal arrays contains more than one item;
let retry_with_force_newline = match context.config.style_edition() {
style_edition @ _ if style_edition <= StyleEdition::Edition2021 => {
style_edition if style_edition <= StyleEdition::Edition2021 => {
!force_newline
&& items.len() > 1
&& (result.0.contains('\n') || result.0.len() > shape.width)
Expand Down
Loading