treat argument as a slice.

Co-authored-by: llogiq <bogusandre@gmail.com>
This commit is contained in:
kyoto7250 2022-06-26 15:55:44 +09:00 committed by GitHub
parent ab645bb081
commit bf317a83cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ fn check_variant(cx: &LateContext<'_>, threshold: u64, def: &EnumDef<'_>, item_n
}
#[must_use]
fn have_no_extra_prefix(prefixes: &Vec<&str>) -> bool {
fn have_no_extra_prefix(prefixes: &[&str]) -> bool {
prefixes.is_empty() || prefixes.join("") == "_"
}