Include the colors in the out file 🥰

This commit is contained in:
Anas Elgarhy 2022-10-03 20:56:26 +02:00
parent 2b59ad4609
commit 9d26bf939a
1 changed files with 6 additions and 2 deletions

View File

@ -59,8 +59,12 @@ fn main() {
info!("Outputting image");
match arguments.output_method {
OutputMethod::File => {
match std::fs::write(arguments.output.clone(),
output.iter().map(|s| s.to_string()).collect::<String>()) {
match std::fs::write(
arguments.output.clone(),
output.iter()
.map(|s| format!("{}", s))
.collect::<String>(),
) {
Ok(_) => info!("Successfully outputted image: {}", arguments.output),
Err(e) => {
error!("Failed to output image: {:?}", e);