mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Janitor: Fix clippy::map_clone
This commit is contained in:
parent
0d73917526
commit
04738a900f
3 changed files with 4 additions and 4 deletions
|
@ -1367,7 +1367,7 @@ unsafe extern "C" fn parent_item(component: ComponentRefPin, index: usize, resul
|
|||
.original
|
||||
.parent_element
|
||||
.upgrade()
|
||||
.and_then(|e| e.borrow().item_index.get().map(|x| *x));
|
||||
.and_then(|e| e.borrow().item_index.get().cloned());
|
||||
if let (Some(parent_offset), Some(parent_index)) =
|
||||
(instance_ref.component_type.parent_component_offset, parent_item_index)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue