summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-13 19:17:06 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-13 19:17:06 +0200
commit04bf4b107c6e2e2414956b970cfcc0b44f470117 (patch)
tree4bda87e16cb65642f6181a821a894ab923ef204a /src
parentc21dd2c62fa089df5910f05eede744a387860acd (diff)
downloadobnam-benchmark-04bf4b107c6e2e2414956b970cfcc0b44f470117.tar.gz
to_owned
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r--src/daemon.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/daemon.rs b/src/daemon.rs
index a4406a4..3e3a189 100644
--- a/src/daemon.rs
+++ b/src/daemon.rs
@@ -134,11 +134,7 @@ impl DaemonManager {
if !cmd.is_empty() {
cmd.push(' ');
}
- cmd.push_str(
- &String::from_utf8_lossy(arg.as_bytes())
- .to_owned()
- .to_string(),
- );
+ cmd.push_str(&String::from_utf8_lossy(arg.as_bytes()).to_string());
}
let err = read(&stderr).map_err(DaemonError::Stderr)?;
let err = String::from_utf8_lossy(&err).into_owned();