gpui: Pass Style by value to request_layout (#11597)

A minor thing I've spotted and decided to fix on the spot.
It was being cloned twice within the body of that function (one of which
was redundant even without this PR); now in most cases we go down from 2
clones to 0.
Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2024-05-09 11:38:53 +02:00
committed by GitHub
parent 5df1481297
commit bd6d385817
16 changed files with 21 additions and 23 deletions
+1 -1
View File
@@ -810,7 +810,7 @@ mod element {
style.flex_basis = relative(0.).into();
style.size.width = relative(1.).into();
style.size.height = relative(1.).into();
(cx.request_layout(&style, None), ())
(cx.request_layout(style, None), ())
}
fn prepaint(