Skip to content

Commit 2ad6cb7

Browse files
committed
Auto merge of #10139 - hi-rustin:rustin-patch-clippy, r=Eh2406
Make clippy happy This expression borrows a reference (`&core::registry::PackageRegistry`) that is immediately dereferenced by the compiler.
2 parents 294967c + de5efea commit 2ad6cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ pub fn resolve_with_previous<'cfg>(
475475
resolved.register_used_patches(&patches[..]);
476476

477477
if register_patches && !resolved.unused_patches().is_empty() {
478-
emit_warnings_of_unused_patches(ws, &resolved, &registry)?;
478+
emit_warnings_of_unused_patches(ws, &resolved, registry)?;
479479
}
480480

481481
if let Some(previous) = previous {

0 commit comments

Comments
 (0)