We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be4bb61 + d492a44 commit 07e9d46Copy full SHA for 07e9d46
src/cargo/ops/resolve.rs
@@ -797,14 +797,14 @@ fn emit_warnings_of_unused_patches(
797
{
798
use std::fmt::Write;
799
let mut msg = String::new();
800
- writeln!(&mut msg, "Patch `{}` {}", unused, MESSAGE)?;
+ writeln!(msg, "Patch `{}` {}", unused, MESSAGE)?;
801
write!(
802
- &mut msg,
+ msg,
803
"Perhaps you misspell the source URL being patched.\n\
804
Possible URLs for `[patch.<URL>]`:",
805
)?;
806
for id in ids.iter() {
807
- write!(&mut msg, "\n {}", id.display_registry_name())?;
+ write!(msg, "\n {}", id.display_registry_name())?;
808
}
809
ws.config().shell().warn(msg)?;
810
0 commit comments