fixed colored contributors option bug

This commit is contained in:
DustInDark
2022-06-12 22:50:59 +09:00
parent b71fc15e66
commit 7af4781134

View File

@@ -424,7 +424,9 @@ impl App {
fn print_contributors(&self) {
match fs::read_to_string("./contributors.txt") {
Ok(contents) => println!("{}", contents),
Ok(contents) => {
write_color_buffer(BufferWriter::stdout(ColorChoice::Always), None, &contents).ok();
}
Err(err) => {
AlertMessage::alert(&format!("{}", err)).ok();
}