diff --git a/bin/kecc.rs b/bin/kecc.rs index 3041918..1b75af6 100644 --- a/bin/kecc.rs +++ b/bin/kecc.rs @@ -86,7 +86,7 @@ fn main() { let mut output: Box = if output == "-" { Box::new(::std::io::stdout()) } else { - Box::new(ok_or_exit!(::std::fs::File::open(output), 1)) + Box::new(ok_or_exit!(::std::fs::File::create(output), 1)) }; let ext = input.extension();