Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/metrics.rs')
-rw-r--r--xtask/src/metrics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index c05874a0cc..9bd3a661c2 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -194,12 +194,12 @@ impl Host {
bail!("can only collect metrics on Linux ");
}
- let os = read_field(sh, "/etc/os-release", "PRETTY_NAME=")?.trim_matches('"').to_string();
+ let os = read_field(sh, "/etc/os-release", "PRETTY_NAME=")?.trim_matches('"').to_owned();
let cpu = read_field(sh, "/proc/cpuinfo", "model name")?
.trim_start_matches(':')
.trim()
- .to_string();
+ .to_owned();
let mem = read_field(sh, "/proc/meminfo", "MemTotal:")?;
@@ -210,7 +210,7 @@ impl Host {
text.lines()
.find_map(|it| it.strip_prefix(field))
- .map(|it| it.trim().to_string())
+ .map(|it| it.trim().to_owned())
.ok_or_else(|| format_err!("can't parse {}", path))
}
}