mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 03:11:08 +00:00
Fixing clippy.
This commit is contained in:
parent
9a34d751f8
commit
925a61ffed
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue