Skip to content

Commit 495e3f6

Browse files
committed
ZJIT: Trim disassembly output from capstone-rs
It has a bad habit of leaving a trailing space, for example for ARM `ret`.
1 parent 6b0e5de commit 495e3f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/disasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn disasm_addr_range(cb: &CodeBlock, start_addr: usize, end_addr: usize) ->
4444
writeln!(&mut out, " {BOLD_BEGIN}# {comment}{BOLD_END}").unwrap();
4545
}
4646
}
47-
writeln!(&mut out, " {insn}").unwrap();
47+
writeln!(&mut out, " {}", format!("{insn}").trim()).unwrap();
4848
}
4949

5050
return out;

0 commit comments

Comments
 (0)