From 43aa2f95bed8450bc9246880eea2c0fdf1fc9eb3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 12 Mar 2024 09:07:59 +0400 Subject: Fix new clone_from Clippy lints --- src/protocols/foreign_toplevel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocols') diff --git a/src/protocols/foreign_toplevel.rs b/src/protocols/foreign_toplevel.rs index f1516cc4..5366da1a 100644 --- a/src/protocols/foreign_toplevel.rs +++ b/src/protocols/foreign_toplevel.rs @@ -172,7 +172,7 @@ fn refresh_toplevel( let mut new_title = None; if data.title != role.title { - data.title = role.title.clone(); + data.title.clone_from(&role.title); new_title = role.title.as_deref(); if new_title.is_none() { @@ -182,7 +182,7 @@ fn refresh_toplevel( let mut new_app_id = None; if data.app_id != role.app_id { - data.app_id = role.app_id.clone(); + data.app_id.clone_from(&role.app_id); new_app_id = role.app_id.as_deref(); if new_app_id.is_none() { -- cgit