build: upgrade rustc to 1.81.0 (#34270)

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
Mukilan Thiyagarajan 2024-12-12 12:56:16 +05:30 committed by GitHub
parent 26f61103d6
commit 7fcde1f7a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 16 additions and 26 deletions

View file

@ -1037,7 +1037,7 @@ impl<T: ClipboardProvider> TextInput<T> {
// https://html.spec.whatwg.org/multipage/#textarea-line-break-normalisation-transformation
content
.replace("\r\n", "\n")
.split(|c| c == '\n' || c == '\r')
.split(['\n', '\r'])
.map(DOMString::from)
.collect()
} else {