Skip to content

Commit 34f5a87

Browse files
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>
1 parent b0575cc commit 34f5a87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bytecode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ impl<C: Constant> fmt::Display for CodeObject<C> {
874874
self.display_inner(f, false, 1)?;
875875
for constant in &*self.constants {
876876
if let BorrowedConstant::Code { code } = constant.borrow_constant() {
877-
write!(f, "\nDisassembly of {:?}\n", code)?;
877+
writeln!(f, "\nDisassembly of {:?}", code)?;
878878
code.fmt(f)?;
879879
}
880880
}

0 commit comments

Comments
 (0)