remove redundant clones, use mul_add on f32s

This commit is contained in:
Cheong Lau 2025-10-11 16:24:38 +10:00 committed by Michael Murphy
parent bd438a8581
commit 1d6a43486e
12 changed files with 69 additions and 69 deletions

View file

@ -370,7 +370,7 @@ impl MenuState {
let limits = Limits::new(Size::ZERO, self.menu_bounds.child_sizes[index]);
let parent_offset = children_bounds.position() - Point::ORIGIN;
let node = menu_tree.item.layout(tree, renderer, &limits);
node.clone().move_to(Point::new(
node.move_to(Point::new(
parent_offset.x,
parent_offset.y + position + self.scroll_offset,
))