Created
February 23, 2018 17:37
-
-
Save thinktainer/31dfb5072a8cb13e35b35c1e3935a7b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mut output: Box<io::Write> = match matches.value_of("out") { | |
Some(o) if o == "-" => Box::new(io::stdout()), | |
Some(o) => Box::new(File::create(&Path::new(o)).unwrap()), | |
None => Box::new(io::stdout()), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment