gnzlbg / cargo-asm

cargo subcommand showing the assembly or llvm-ir generated for Rust code
https://github.com/gnzlbg/cargo-asm
Other
1.17k stars 36 forks source link

Add newline character after error message #198

Open JOE1994 opened 4 years ago

JOE1994 commented 4 years ago

Currently, error messages emitted to stderr don't end with a newline character.

This commit adds a newline character at the end of the printed error message, to slightly improve user experience.

Thank you for reviewing this PR :+1:

p.s. I also made one minor change that moves branch-invariant parts out of the if-else block.