Skip to content

Commit

Permalink
fix: don't print new line to stdout (#95)
Browse files Browse the repository at this point in the history
* trim ending new lines

* replace `println` with `print` call to remove extra new lines

---------

Co-authored-by: Bram <[email protected]>
  • Loading branch information
koopa1338 and bram209 authored Dec 21, 2023
1 parent feceecb commit f6b196c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn main() {
if args.check && check_if_diff(None, &original, &formatted, true) {
exit(1)
} else {
println!("{formatted}")
print!("{formatted}")
}
}
Err(err) => {
Expand Down

0 comments on commit f6b196c

Please sign in to comment.