(input: &str)
| 263 | } |
| 264 | |
| 265 | fn open_input(input: &str) -> io::Result<Box<dyn Read>> { |
| 266 | if input == "-" { |
| 267 | return Ok(Box::new(io::stdin().lock())); |
| 268 | } |
| 269 | Ok(Box::new(fs::File::open(input)?)) |
| 270 | } |
| 271 | |
| 272 | fn open_output(output: &str) -> io::Result<Box<dyn Write>> { |
| 273 | if output == "-" { |