Remove needless borrow

Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
hi-rustin 2022-02-04 10:46:44 +08:00
parent be4bb61d04
commit d492a446c5

View File

@ -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)?;
}