remove redundant clones, use mul_add on f32s
This commit is contained in:
parent
bd438a8581
commit
1d6a43486e
12 changed files with 69 additions and 69 deletions
|
|
@ -33,7 +33,7 @@ where
|
|||
.layout(self.tree, renderer, &limits);
|
||||
let node_size = node.size();
|
||||
|
||||
node.clone().move_to(Point {
|
||||
node.move_to(Point {
|
||||
x: if bounds.width > node_size.width - 8.0 {
|
||||
bounds.width - node_size.width - 8.0
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue