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

@ -199,7 +199,7 @@ where
fn layout(&mut self, renderer: &Renderer, bounds: Size) -> Node {
let limits = Limits::new(Size::ZERO, bounds);
let mut node = self
let node = self
.element
.as_widget()
.layout(self.state, renderer, &limits);
@ -211,9 +211,7 @@ where
bounds.height - (node.size().height + offset),
);
node.move_to_mut(position);
node
node.move_to(position)
}
fn draw(