Skip to content

Commit

Permalink
Update src/rewrite/ecc_rewriter.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Agustín Borgna <[email protected]>
  • Loading branch information
lmondada and aborgna-q authored Sep 29, 2023
1 parent edc68c3 commit 3048b6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rewrite/ecc_rewriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ impl ECCRewriter {
) -> Result<PathBuf, RewriterSerialisationError> {
let mut file_name = PathBuf::from(name.as_ref());
file_name.set_extension("rwr");
let mut file = File::create(&file_name)?;
let file = File::create(&file_name)?;
let mut file = io::BufWriter::new(file);
self.save_binary_io(&mut file)?;
Ok(file_name)
}
Expand Down

0 comments on commit 3048b6b

Please sign in to comment.