mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
build: upgrade rustc to 1.81.0 (#34270)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
26f61103d6
commit
7fcde1f7a3
15 changed files with 16 additions and 26 deletions
|
@ -873,11 +873,7 @@ fn run_form_data_algorithm(
|
|||
mime: &[u8],
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<FetchedData> {
|
||||
let mime_str = if let Ok(s) = str::from_utf8(mime) {
|
||||
s
|
||||
} else {
|
||||
""
|
||||
};
|
||||
let mime_str = str::from_utf8(mime).unwrap_or_default();
|
||||
let mime: Mime = mime_str
|
||||
.parse()
|
||||
.map_err(|_| Error::Type("Inappropriate MIME-type for Body".to_string()))?;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue