Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove needless borrow #10360

Merged
merged 1 commit into from
Feb 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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