Add clippy, fix up warnings
CI / cargo fmt (push) Successful in 23s
CI / cargo test (push) Successful in 12m44s
CI / cargo test (GPU) (push) Successful in 16m32s

This commit is contained in:
2026-07-12 14:45:46 -04:00
parent 08ada94bd2
commit 9ea4261a84
7 changed files with 19 additions and 19 deletions
+3 -6
View File
@@ -19,15 +19,12 @@ mod test {
}
fn has_entry_point(execution_model: ExecutionModel, name: &str) -> bool {
for ref entry_point in shader().entry_points.iter() {
for entry_point in shader().entry_points.iter() {
let operands: Vec<Operand> = entry_point
.operands
.iter()
.filter(|op| match op {
Operand::ExecutionModel(_) | Operand::LiteralString(_) => true,
_ => false,
})
.map(|op| op.clone())
.filter(|op| matches!(op, Operand::ExecutionModel(_) | Operand::LiteralString(_)))
.cloned()
.collect();
assert_eq!(operands.len(), 2);