Skip to content

Commit c8b47ee

Browse files
authored
refactor: use the eprintln macro (#591)
1 parent 4294cbb commit c8b47ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2959,7 +2959,7 @@ fn spawn(cmd: &mut Command, program: &str) -> Result<(Child, JoinHandle<()>), Er
29592959
}
29602960

29612961
fn fail(s: &str) -> ! {
2962-
let _ = writeln!(io::stderr(), "\n\nerror occurred: {}\n\n", s);
2962+
eprintln!("\n\nerror occurred: {}\n\n", s);
29632963
std::process::exit(1);
29642964
}
29652965

0 commit comments

Comments
 (0)