Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
uncomputable committed Aug 24, 2024
1 parent fa436da commit 74ca1f1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions codegen/src/jet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,19 +988,16 @@ mod tests {
for jet in Elements::ALL {
match Category::ALL.iter().find(|c| c.contains(&jet)) {
Some(category) => {
match Category::ALL
if let Some(other) = Category::ALL
.into_iter()
.filter(|other| other != category)
.find(|other| other.contains(&jet))
{
Some(other) => panic!(
"{jet} is assigned conflicting categories {category} and {other}"
),
None => {}
panic!("{jet} is assigned conflicting categories {category} and {other}");
}
}
None => {
assert!(DISABLED.contains(&jet), "{jet} is not categorized")
assert!(DISABLED.contains(&jet), "{jet} is not categorized");
}
}
}
Expand Down

0 comments on commit 74ca1f1

Please sign in to comment.