Skip to content
Snippets Groups Projects
Commit 7dcbf77c authored by Sergey Pepyakin's avatar Sergey Pepyakin Committed by Arkadiy Paronyan
Browse files

Use create instead of open for export blocks (#356)

parent 94fcb9a2
No related merge requests found
...@@ -360,7 +360,7 @@ fn export_blocks<E>(matches: &clap::ArgMatches, exit: E) -> error::Result<()> ...@@ -360,7 +360,7 @@ fn export_blocks<E>(matches: &clap::ArgMatches, exit: E) -> error::Result<()>
let json = matches.is_present("json"); let json = matches.is_present("json");
let mut file: Box<Write> = match matches.value_of("OUTPUT") { let mut file: Box<Write> = match matches.value_of("OUTPUT") {
Some(filename) => Box::new(File::open(filename)?), Some(filename) => Box::new(File::create(filename)?),
None => Box::new(stdout()), None => Box::new(stdout()),
}; };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment