From 34f5a8793adc67dad8e01d98743d39e18395c355 Mon Sep 17 00:00:00 2001 From: Tony Jinwoo Ahn Date: Sat, 2 Oct 2021 15:23:11 +0900 Subject: [PATCH] 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 --- bytecode/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bytecode/src/lib.rs b/bytecode/src/lib.rs index c6604944e..c72cd57f7 100644 --- a/bytecode/src/lib.rs +++ b/bytecode/src/lib.rs @@ -874,7 +874,7 @@ impl fmt::Display for CodeObject { 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)?; } }