Fixing clippy.

scheduled_task_instance_update_nodeinfo
Dessalines 2024-06-01 08:32:32 -04:00
parent 9a34d751f8
commit 925a61ffed
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}