From 04bf4b107c6e2e2414956b970cfcc0b44f470117 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 13 Jan 2024 19:17:06 +0200 Subject: to_owned Signed-off-by: Lars Wirzenius Sponsored-by: author --- src/daemon.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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(); -- cgit v1.2.1