mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
remove as_ref where clippy::useless_asref
This commit is contained in:
parent
0ed01489d8
commit
0a6f67109c
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user