Skip to content

Commit

Permalink
Replace write with write_all
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 25, 2020
1 parent d2b8406 commit 8ec977e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretty_clif.rs
Expand Up @@ -262,7 +262,7 @@ pub(crate) fn write_clif_file<'tcx>(
writeln!(file, "set enable_simd")?;
writeln!(file, "target {} haswell", target_triple)?;
writeln!(file, "")?;
file.write(clif.as_bytes())?;
file.write_all(clif.as_bytes())?;
};
if let Err(err) = res {
tcx.sess.warn(&format!("err writing clif file: {}", err));
Expand Down

0 comments on commit 8ec977e

Please sign in to comment.