mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Fix clippy suggestions
This commit is contained in:
1 parent
790e1bfa2c
commit
c7e56942f7
5 files changed
+8
-8
No files matched your search
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user