From 5d647518c0b433a4f2db57294f45520a6cce14c5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 18 Nov 2024 12:44:49 +0200 Subject: [PATCH] remove extra clone --- .../window/tab/item/identity/gemini/widget/form/list.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs index 378c9d79..8aa166e7 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs @@ -30,13 +30,13 @@ impl List { // Create new label for item let item = Label::new(Some(label)); + // Append formatted record + self.model.append(&item); + // Register ID in hash map index self.index .borrow_mut() - .insert(item.clone(), profile_identity_gemini_id); - - // Append formatted record - self.model.append(&item); + .insert(item, profile_identity_gemini_id); } // Events