mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
clippy: Fix warnings in shared
and config
, fonts
, layout
, and layout_2020
components (#32674)
This commit is contained in:
parent
99c1f886b8
commit
4b63043c6a
20 changed files with 72 additions and 78 deletions
|
@ -575,10 +575,7 @@ fn try_to_parse_image_data_url(string: &str) -> Option<Url> {
|
|||
if !string.starts_with("data:") {
|
||||
return None;
|
||||
}
|
||||
let Some(data_url) = DataUrl::process(string).ok() else {
|
||||
return None;
|
||||
};
|
||||
|
||||
let data_url = DataUrl::process(string).ok()?;
|
||||
let mime_type = data_url.mime_type();
|
||||
if mime_type.type_ != "image" {
|
||||
return None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue