Skip to content

Commit 487f7bc

Browse files
committed
Merge adjacent write! invocations
1 parent f66367d commit 487f7bc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc/mir/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1133,10 +1133,7 @@ impl<'tcx> TerminatorKind<'tcx> {
11331133
if !expected {
11341134
write!(fmt, "!")?;
11351135
}
1136-
write!(fmt, "{:?}, ", cond)?;
1137-
write!(fmt, "\"{:?}\"", msg)?;
1138-
1139-
write!(fmt, ")")
1136+
write!(fmt, "{:?}, \"{:?}\")", cond, msg)
11401137
},
11411138
FalseEdges { .. } => write!(fmt, "falseEdges"),
11421139
FalseUnwind { .. } => write!(fmt, "falseUnwind"),

0 commit comments

Comments
 (0)