From 0ff4ff6432538f0eefa031655c290459f981fe66 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 13 Jan 2024 19:16:07 +0200 Subject: to_owned Signed-off-by: Lars Wirzenius Sponsored-by: author --- src/client.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/client.rs b/src/client.rs index dd2a624..43a52ec 100644 --- a/src/client.rs +++ b/src/client.rs @@ -58,9 +58,7 @@ impl ObnamClient { std::process::exit(1); } - Ok(String::from_utf8_lossy(&output.stdout) - .to_owned() - .to_string()) + Ok(String::from_utf8_lossy(&output.stdout).to_string()) } } -- cgit v1.2.1