Skip to content

Commit 8ec977e

Browse files
committed
Replace write with write_all
1 parent d2b8406 commit 8ec977e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pretty_clif.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub(crate) fn write_clif_file<'tcx>(
262262
writeln!(file, "set enable_simd")?;
263263
writeln!(file, "target {} haswell", target_triple)?;
264264
writeln!(file, "")?;
265-
file.write(clif.as_bytes())?;
265+
file.write_all(clif.as_bytes())?;
266266
};
267267
if let Err(err) = res {
268268
tcx.sess.warn(&format!("err writing clif file: {}", err));

0 commit comments

Comments
 (0)