Skip to content

Commit 7e79dcd

Browse files
committed
Drive-by fix string fmt
1 parent 46b180e commit 7e79dcd

File tree

1 file changed

+6
-6
lines changed
  • compiler/rustc_borrowck/src/diagnostics

1 file changed

+6
-6
lines changed

compiler/rustc_borrowck/src/diagnostics/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1226,20 +1226,20 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
12261226
{
12271227
let msg = match &errors[..] {
12281228
[] => "you can `clone` the value and consume it, but this \
1229-
might not be your desired behavior"
1229+
might not be your desired behavior"
12301230
.to_string(),
12311231
[error] => {
12321232
format!(
1233-
"you could `clone` the value and consume it, if \
1234-
the `{}` trait bound could be satisfied",
1233+
"you could `clone` the value and consume it, if the \
1234+
`{}` trait bound could be satisfied",
12351235
error.obligation.predicate,
12361236
)
12371237
}
12381238
[errors @ .., last] => {
12391239
format!(
1240-
"you could `clone` the value and consume it, if \
1241-
the following trait bounds could be satisfied: {} \
1242-
and `{}`",
1240+
"you could `clone` the value and consume it, if the \
1241+
following trait bounds could be satisfied: \
1242+
{} and `{}`",
12431243
errors
12441244
.iter()
12451245
.map(|e| format!("`{}`", e.obligation.predicate))

0 commit comments

Comments
 (0)