From 283a0edca2fb5c099b7f935244ba70e99d9eec42 Mon Sep 17 00:00:00 2001 From: sam edelsten <samedelsten1@gmail.com> Date: Mon, 6 May 2024 21:16:25 +0100 Subject: [PATCH] fix clippy --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index e518608..7158db5 100644 --- a/src/util.rs +++ b/src/util.rs @@ -126,7 +126,7 @@ pub fn print_editor_text( if current_text == *previous_value { return; } - *previous_value = current_text.clone(); + previous_value.clone_from(¤t_text); info!("Widget text: {:?}", current_text); } } -- GitLab