Skip to content

Commit 0a6f671

Browse files
committed
remove as_ref where clippy::useless_asref
1 parent 0ed0148 commit 0a6f671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/cargo_package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ fn build_ar_list(
237237
let rel_str = rel_path.to_str().ok_or_else(|| {
238238
anyhow::format_err!("non-utf8 path in source directory: {}", rel_path.display())
239239
})?;
240-
match rel_str.as_ref() {
240+
match rel_str {
241241
"Cargo.lock" => continue,
242242
VCS_INFO_FILE | ORIGINAL_MANIFEST_FILE => anyhow::bail!(
243243
"invalid inclusion of reserved file name {} in package source",

0 commit comments

Comments
 (0)