Skip to content

Commit bf317a8

Browse files
kyoto7250llogiq
andauthored
treat argument as a slice.
Co-authored-by: llogiq <[email protected]>
1 parent ab645bb commit bf317a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/enum_variants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ fn check_variant(cx: &LateContext<'_>, threshold: u64, def: &EnumDef<'_>, item_n
213213
}
214214

215215
#[must_use]
216-
fn have_no_extra_prefix(prefixes: &Vec<&str>) -> bool {
216+
fn have_no_extra_prefix(prefixes: &[&str]) -> bool {
217217
prefixes.is_empty() || prefixes.join("") == "_"
218218
}
219219

0 commit comments

Comments
 (0)