summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-03-10 10:12:13 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-03-10 10:13:05 +0100
commitf5058c3b15e6fdf3b60cd14a65badaf4f2a056bd (patch)
tree472b0255260eb85d99d2bd3eb86aecbaede992c9
parent73223d4cea89ca45600362d03b420579107ed7c1 (diff)
Clippy fix: Remove unneeded to_string() call
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/commands/endpoint.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/endpoint.rs b/src/commands/endpoint.rs
index 93a969e..c1632e6 100644
--- a/src/commands/endpoint.rs
+++ b/src/commands/endpoint.rs
@@ -145,7 +145,7 @@ async fn stats(endpoint_names: Vec<String>,
stat.memory_limit.to_string(),
stat.n_cpu.to_string(),
stat.operating_system.to_string(),
- stat.system_time.map(|t| t.to_string()).unwrap_or_else(|| String::from("unknown")),
+ stat.system_time.unwrap_or_else(|| String::from("unknown")),
]
})
.collect();