Skip to content

Commit

Permalink
Minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
hdwalters committed Dec 30, 2024
1 parent e899204 commit c54058a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ use postprocessor::PostProcessor;
use chrono::prelude::*;
use colored::Colorize;
use heraclitus_compiler::prelude::*;
use itertools::Itertools;
use wildmatch::WildMatchPattern;
use std::env;
use std::fs;
use std::fs::File;
use std::io::{ErrorKind, Write};
use std::iter::once;
use std::path::PathBuf;
use std::process::{Command, ExitStatus};
use std::time::Instant;
Expand Down Expand Up @@ -261,7 +263,8 @@ impl AmberCompiler {
}
if !paths.is_empty() {
let files = if paths.len() > 1 { "Files" } else { "File" };
Message::new_info_msg(format!("{files} generated at:\n{}", paths.join("\n"))).show();
let message = once(format!("{files} generated at:")).chain(paths.into_iter()).join("\n");
Message::new_info_msg(message).show();
}
}

Expand Down

0 comments on commit c54058a

Please sign in to comment.