Narfinger · GitHub

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

@Narfinger

Loirooriol

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Loirooriol

@TimvdLippe

@Narfinger

niyabits pushed a commit to niyabits/servo that referenced this pull request

Jun 11, 2026
This removes an unnecessary string creation/clone for
get_lang_for_layout.
get_lang_for_layout is only read by match_element_lang which creates an
AtomString. Directly returning an AtomString from the returned &str is
more efficient than creating a String in between.
Testing: The output is exactly the same, so no need for extra tests.
---------
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Read the original on github.com ↗