Merge adjacent write! invocations

This commit is contained in:
Oliver Schneider 2018-05-01 12:26:58 +02:00
parent f66367dacc
commit 487f7bc016
No known key found for this signature in database
GPG Key ID: 1D5CB4FC597C3004

View File

@ -1133,10 +1133,7 @@ impl<'tcx> TerminatorKind<'tcx> {
if !expected {
write!(fmt, "!")?;
}
write!(fmt, "{:?}, ", cond)?;
write!(fmt, "\"{:?}\"", msg)?;
write!(fmt, ")")
write!(fmt, "{:?}, \"{:?}\")", cond, msg)
},
FalseEdges { .. } => write!(fmt, "falseEdges"),
FalseUnwind { .. } => write!(fmt, "falseUnwind"),