Replace write! with writeln!

Instead of calling write! with an explicit newline character at the end,
prefer its alternative, writeln!.

Signed-off-by: Tony Jinwoo Ahn <tony.jinwoo.ahn@gmail.com>
This commit is contained in:
Tony Jinwoo Ahn committed 2021-10-02 15:23:11 +09:00
1 parent b0575ccf5d
commit 34f5a8793a
1 file changed
+1 -1
+1 -1
View File
@@ -874,7 +874,7 @@ impl<C: Constant> fmt::Display for CodeObject<C> {
self.display_inner(f, false, 1)?;
for constant in &*self.constants {
if let BorrowedConstant::Code { code } = constant.borrow_constant() {
write!(f, "\nDisassembly of {:?}\n", code)?;
writeln!(f, "\nDisassembly of {:?}", code)?;
code.fmt(f)?;
}
}