diff options
author | 林炳权 <695601626@qq.com> | 2023-10-06 02:49:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 14:49:09 -0400 |
commit | 7a01799f490739612be27725f1584a995f6b1491 (patch) | |
tree | f7861a6db6d055ed109281533786046ad44c4eb8 /cli/tools/bench/mitata.rs | |
parent | ab3c9d41e483e5a7e6a326c66af7052a51301f91 (diff) |
chore: update to Rust 1.73 (#20781)
Diffstat (limited to 'cli/tools/bench/mitata.rs')
-rw-r--r-- | cli/tools/bench/mitata.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/tools/bench/mitata.rs b/cli/tools/bench/mitata.rs index 1e20e4016..7ddea6f82 100644 --- a/cli/tools/bench/mitata.rs +++ b/cli/tools/bench/mitata.rs @@ -149,8 +149,7 @@ pub mod cpu { } pub fn linux() -> String { - let info = - std::fs::read_to_string("/proc/cpuinfo").unwrap_or(String::new()); + let info = std::fs::read_to_string("/proc/cpuinfo").unwrap_or_default(); for line in info.lines() { let mut iter = line.split(':'); |