Skip to content

Commit

Permalink
Auto merge of #10360 - hi-rustin:rustin-patch-clippy, r=alexcrichton
Browse files Browse the repository at this point in the history
Remove needless borrow

Make clippy happy.
  • Loading branch information
bors committed Feb 4, 2022
2 parents be4bb61 + d492a44 commit 07e9d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cargo/ops/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,14 +797,14 @@ fn emit_warnings_of_unused_patches(
{
use std::fmt::Write;
let mut msg = String::new();
writeln!(&mut msg, "Patch `{}` {}", unused, MESSAGE)?;
writeln!(msg, "Patch `{}` {}", unused, MESSAGE)?;
write!(
&mut msg,
msg,
"Perhaps you misspell the source URL being patched.\n\
Possible URLs for `[patch.<URL>]`:",
)?;
for id in ids.iter() {
write!(&mut msg, "\n {}", id.display_registry_name())?;
write!(msg, "\n {}", id.display_registry_name())?;
}
ws.config().shell().warn(msg)?;
}
Expand Down

0 comments on commit 07e9d46

Please sign in to comment.