remove extra clone

This commit is contained in:
yggverse 2024-11-18 12:44:49 +02:00
parent 6b5e712cdf
commit 5d647518c0

View File

@ -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