From 925a61ffedfff863f845f18ade4c40a47a51c17c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 1 Jun 2024 08:32:32 -0400 Subject: [PATCH] Fixing clippy. --- src/scheduled_tasks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scheduled_tasks.rs b/src/scheduled_tasks.rs index 2541678b3..e0edbda03 100644 --- a/src/scheduled_tasks.rs +++ b/src/scheduled_tasks.rs @@ -507,8 +507,8 @@ async fn update_instance_software( // Instance sent valid nodeinfo, write it to db // Set the instance form fields. if let Some(software) = node_info.software.as_ref() { - instance_form.software = software.name.clone(); - instance_form.version = software.version.clone(); + instance_form.software.clone_from(&software.name); + instance_form.version.clone_from(&software.version); } Some(instance_form) }