Fix clippy suggestions

This commit is contained in:
David Peter authored and David Peter committed 2022-09-07 09:20:50 +02:00
1 parent 790e1bfa2c
commit c7e56942f7
5 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ pub struct JsonExporter {}
impl Exporter for JsonExporter {
fn serialize(&self, results: &[BenchmarkResult], _unit: Option<Unit>) -> Result<Vec<u8>> {
let mut output = to_vec_pretty(&HyperfineSummary { results });
for content in output.iter_mut() {
if let Ok(ref mut content) = output {
content.push(b'\n');
}