From a4bef827d10f28dc5eba53b90e9e9b36c84125d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 18 Jun 2025 18:14:39 +0000 Subject: [PATCH] fix clippy lint without `drop` --- src/sharry/client.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sharry/client.rs b/src/sharry/client.rs index e7733f3..d3fdac0 100644 --- a/src/sharry/client.rs +++ b/src/sharry/client.rs @@ -122,10 +122,9 @@ pub enum ClientError { Unknown(String), } +#[allow(clippy::needless_pass_by_value)] fn into_string(val: impl ToString) -> String { - let result = val.to_string(); - drop(val); - result + val.to_string() } impl ClientError {