mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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()))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue