Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit a3a9d41

Browse files
committed
reset terminal color/bold after emitting error
This resolves #113, and plausibly also #115.
1 parent 28dbb43 commit a3a9d41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cargo-fix/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fn main() {
5050
let _ = stream.reset();
5151
let _ = stream.set_color(ColorSpec::new().set_bold(true));
5252
writeln!(stream, ": {}", err).unwrap();
53+
let _ = stream.reset();
5354

5455
for cause in err.causes().skip(1) {
5556
eprintln!("\tcaused by: {}", cause);

0 commit comments

Comments
 (0)