mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Merge adjacent write! invocations
This commit is contained in:
@@ -1133,10 +1133,7 @@ pub fn fmt_head<W: Write>(&self, fmt: &mut W) -> fmt::Result {
|
||||
if !expected {
|
||||
write!(fmt, "!")?;
|
||||
}
|
||||
write!(fmt, "{:?}, ", cond)?;
|
||||
write!(fmt, "\"{:?}\"", msg)?;
|
||||
|
||||
write!(fmt, ")")
|
||||
write!(fmt, "{:?}, \"{:?}\")", cond, msg)
|
||||
},
|
||||
FalseEdges { .. } => write!(fmt, "falseEdges"),
|
||||
FalseUnwind { .. } => write!(fmt, "falseUnwind"),
|
||||
|
||||
Reference in New Issue
Block a user