mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
clippy: redundant clone
fix in generated rust code
This fixes about half the `redundant clone` issues that clippy reports in our generated rust code.
This commit is contained in:
parent
0b03a0646a
commit
d1aaba8117
1 changed files with 1 additions and 1 deletions
|
@ -1521,7 +1521,7 @@ fn generate_repeated_component(
|
|||
fn init(&self) {
|
||||
let self_rc = self.self_weak.get().unwrap().upgrade().unwrap();
|
||||
#inner_component_id::user_init(
|
||||
VRcMapped::map(self_rc.clone(), |x| x),
|
||||
VRcMapped::map(self_rc, |x| x),
|
||||
);
|
||||
}
|
||||
#extra_fn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue