Skip to content

Commit

Permalink
ignore: apply rustfmt
Browse files Browse the repository at this point in the history
I believe this happened because rustfmt now knows how to format `let ...
else` constructs.
  • Loading branch information
BurntSushi committed Aug 29, 2023
1 parent 67abd49 commit 51765f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ignore/src/default_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ mod tests {
#[test]
fn default_types_are_sorted() {
let mut names = DEFAULT_TYPES.iter().map(|(aliases, _)| aliases[0]);
let Some(mut previous_name) = names.next() else { return; };
let Some(mut previous_name) = names.next() else {
return;
};
for name in names {
assert!(
name > previous_name,
Expand Down

0 comments on commit 51765f2

Please sign in to comment.