Skip to content

Commit 4f108cb

Browse files
committed
fix: use write_all() instead of write() to write the header, since write() is not guaranteed to write the entire buffer
1 parent 0b2b454 commit 4f108cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime_tracing/src/capnptrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ pub fn write_trace(q: &Vec<crate::TraceLowLevelEvent>, output: &mut impl std::io
309309
}
310310
}
311311

312-
output.write(HEADER)?;
312+
output.write_all(HEADER)?;
313313

314314
serialize_packed::write_message(output, &message)
315315
}

0 commit comments

Comments
 (0)