niyabits pushed a commit to niyabits/servo that referenced this pull request
Jun 11, 2026This 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>