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:
Tobias Hunger 2023-03-09 10:35:29 +01:00 committed by Tobias Hunger
parent 0b03a0646a
commit d1aaba8117

View file

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