performance-metrics: Use Write::write_all() for report

Write::write() is not guaranteed to write all the contents.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-03-14 09:57:39 +00:00
committed by Sebastien Boeuf
parent 1004f870e1
commit a6d86b9496

View File

@@ -497,7 +497,7 @@ fn main() {
}; };
report_file report_file
.write( .write_all(
serde_json::to_string_pretty(&metrics_report) serde_json::to_string_pretty(&metrics_report)
.unwrap() .unwrap()
.as_bytes(), .as_bytes(),