Seperate between internal and external conversion

This commit is contained in:
2024-05-21 19:30:54 +02:00
parent 5f11ab40d4
commit 98b0868d76
5 changed files with 49 additions and 12 deletions

View File

@@ -183,7 +183,7 @@ pub fn open_output(output_file: &Option<PathBuf>) -> Result<Output, Error> {
}
}
pub fn open_input(input_file: Option<PathBuf>) -> Result<Input, Error> {
pub fn open_input(input_file: &Option<PathBuf>) -> Result<Input, Error> {
match input_file {
Some(input_path) => Ok(Box::new(open_input_file_buffered(&input_path)?)),
None => Ok(Box::new(BufReader::new(std::io::stdin()))),