Skip to content

Commit

Permalink
Remove needless borrow
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Feb 4, 2022
1 parent be4bb61 commit d492a44
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 d492a44

Please sign in to comment.