diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-04-26 13:07:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 13:07:15 -0400 |
commit | 55a9977c6252a38fac721ad789df0c7e8acf33c9 (patch) | |
tree | b549994ba0766a1f980c0565afcf325af405902e /cli/tools/bench.rs | |
parent | 5f7db93d0b883abaeae392e5bd8ea5b48e9fe4b5 (diff) |
refactor(compile): remove usage of ProcState and CliOptions (#18855)
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() |