Skip to content

Commit 8d72ff4

Browse files
branchseerclaude
andcommitted
fix: resolve CI failures in package_filter tests and clippy
Replace wildcard match arms in test code with explicit `PackageQueryKind::All` to satisfy `match_wildcard_for_single_variants`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 942c9cc commit 8d72ff4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/vite_workspace/src/package_filter.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ mod tests {
10381038
);
10391039
assert_no_traversal(&filters[0]);
10401040
}
1041-
other => panic!("expected Filters, got {other:?}"),
1041+
crate::package_graph::PackageQueryKind::All => panic!("expected Filters, got All"),
10421042
}
10431043
}
10441044

@@ -1081,7 +1081,7 @@ mod tests {
10811081
);
10821082
assert_traversal(&filters[0], TraversalDirection::Dependencies, false);
10831083
}
1084-
other => panic!("expected Filters, got {other:?}"),
1084+
crate::package_graph::PackageQueryKind::All => panic!("expected Filters, got All"),
10851085
}
10861086
}
10871087

@@ -1106,7 +1106,7 @@ mod tests {
11061106
filters[1].selector
11071107
);
11081108
}
1109-
other => panic!("expected Filters, got {other:?}"),
1109+
crate::package_graph::PackageQueryKind::All => panic!("expected Filters, got All"),
11101110
}
11111111
}
11121112

@@ -1150,7 +1150,7 @@ mod tests {
11501150
assert_eq!(filters[0].source.as_deref(), Some("a"));
11511151
assert_eq!(filters[1].source.as_deref(), Some("b"));
11521152
}
1153-
other => panic!("expected Filters, got {other:?}"),
1153+
crate::package_graph::PackageQueryKind::All => panic!("expected Filters, got All"),
11541154
}
11551155
}
11561156

@@ -1170,7 +1170,7 @@ mod tests {
11701170
assert_eq!(filters[0].source.as_deref(), Some("foo"));
11711171
assert!(filters[1].source.is_none());
11721172
}
1173-
other => panic!("expected Filters, got {other:?}"),
1173+
crate::package_graph::PackageQueryKind::All => panic!("expected Filters, got All"),
11741174
}
11751175
}
11761176

@@ -1189,7 +1189,7 @@ mod tests {
11891189
assert_eq!(filters.len(), 1);
11901190
assert!(filters[0].source.is_none());
11911191
}
1192-
other => panic!("expected Filters, got {other:?}"),
1192+
crate::package_graph::PackageQueryKind::All => panic!("expected Filters, got All"),
11931193
}
11941194
}
11951195
}

0 commit comments

Comments
 (0)