Seperate between internal and external conversion
This commit is contained in:
@@ -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()))),
|
||||
|
||||
Reference in New Issue
Block a user