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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 21 additions and 23 deletions

View file

@ -568,7 +568,7 @@ impl Element for MarkdownElement {
let mut rendered_markdown = builder.build();
let child_layout_id = rendered_markdown.element.request_layout(cx);
let layout_id = cx.request_layout(&Style::default(), [child_layout_id]);
let layout_id = cx.request_layout(Style::default(), [child_layout_id]);
(layout_id, rendered_markdown)
}