Skip to content

Commit 07e9d46

Browse files
committed
Auto merge of #10360 - hi-rustin:rustin-patch-clippy, r=alexcrichton
Remove needless borrow Make clippy happy.
2 parents be4bb61 + d492a44 commit 07e9d46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/ops/resolve.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -797,14 +797,14 @@ fn emit_warnings_of_unused_patches(
797797
{
798798
use std::fmt::Write;
799799
let mut msg = String::new();
800-
writeln!(&mut msg, "Patch `{}` {}", unused, MESSAGE)?;
800+
writeln!(msg, "Patch `{}` {}", unused, MESSAGE)?;
801801
write!(
802-
&mut msg,
802+
msg,
803803
"Perhaps you misspell the source URL being patched.\n\
804804
Possible URLs for `[patch.<URL>]`:",
805805
)?;
806806
for id in ids.iter() {
807-
write!(&mut msg, "\n {}", id.display_registry_name())?;
807+
write!(msg, "\n {}", id.display_registry_name())?;
808808
}
809809
ws.config().shell().warn(msg)?;
810810
}

0 commit comments

Comments
 (0)