Skip to content

Commit

Permalink
Auto merge of #10139 - hi-rustin:rustin-patch-clippy, r=Eh2406
Browse files Browse the repository at this point in the history
Make clippy happy

This expression borrows a reference (`&core::registry::PackageRegistry`) that is immediately dereferenced by the compiler.
  • Loading branch information
bors committed Nov 30, 2021
2 parents 294967c + de5efea commit 2ad6cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ pub fn resolve_with_previous<'cfg>(
resolved.register_used_patches(&patches[..]);

if register_patches && !resolved.unused_patches().is_empty() {
emit_warnings_of_unused_patches(ws, &resolved, &registry)?;
emit_warnings_of_unused_patches(ws, &resolved, registry)?;
}

if let Some(previous) = previous {
Expand Down

0 comments on commit 2ad6cb7

Please sign in to comment.