Fixing clippy.

This commit is contained in:
Dessalines 2024-06-01 08:32:32 -04:00
parent 9a34d751f8
commit 925a61ffed

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