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