mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove extra clone
This commit is contained in:
parent
6b5e712cdf
commit
5d647518c0
@ -30,13 +30,13 @@ impl List {
|
|||||||
// Create new label for item
|
// Create new label for item
|
||||||
let item = Label::new(Some(label));
|
let item = Label::new(Some(label));
|
||||||
|
|
||||||
|
// Append formatted record
|
||||||
|
self.model.append(&item);
|
||||||
|
|
||||||
// Register ID in hash map index
|
// Register ID in hash map index
|
||||||
self.index
|
self.index
|
||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.insert(item.clone(), profile_identity_gemini_id);
|
.insert(item, profile_identity_gemini_id);
|
||||||
|
|
||||||
// Append formatted record
|
|
||||||
self.model.append(&item);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user