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:
parent
5df1481297
commit
bd6d385817
16 changed files with 21 additions and 23 deletions
|
@ -559,7 +559,7 @@ impl Element for TerminalElement {
|
|||
.request_layout(global_id, cx, |mut style, cx| {
|
||||
style.size.width = relative(1.).into();
|
||||
style.size.height = relative(1.).into();
|
||||
let layout_id = cx.request_layout(&style, None);
|
||||
let layout_id = cx.request_layout(style, None);
|
||||
|
||||
layout_id
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue