aboutsummaryrefslogtreecommitdiff
path: root/src/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/foreign_toplevel.rs4
1 files changed, 2 insertions, 2 deletions
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() {