diff options
Diffstat (limited to 'cli/tools/bench.rs')
-rw-r--r-- | cli/tools/bench.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tools/bench.rs b/cli/tools/bench.rs index 0b6ef8bb1..9930bcc77 100644 --- a/cli/tools/bench.rs +++ b/cli/tools/bench.rs @@ -931,7 +931,10 @@ mod mitata { sysctl.arg("-n"); sysctl.arg("machdep.cpu.brand_string"); return std::str::from_utf8( - &sysctl.output().map_or(Vec::from("unknown"), |x| x.stdout), + &sysctl + .output() + .map(|x| x.stdout) + .unwrap_or(Vec::from("unknown")), ) .unwrap() .trim() |