remove as_ref where clippy::useless_asref

This commit is contained in:
Jacob Finkelman 2023-09-13 20:19:57 +00:00
parent 0ed01489d8
commit 0a6f67109c

View File

@ -237,7 +237,7 @@ fn build_ar_list(
let rel_str = rel_path.to_str().ok_or_else(|| {
anyhow::format_err!("non-utf8 path in source directory: {}", rel_path.display())
})?;
match rel_str.as_ref() {
match rel_str {
"Cargo.lock" => continue,
VCS_INFO_FILE | ORIGINAL_MANIFEST_FILE => anyhow::bail!(
"invalid inclusion of reserved file name {} in package source",