Skip to content

Commit 1f46217

Browse files
author
lishuo
committed
fix failed ci
1 parent a4af4a7 commit 1f46217

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

data-url/src/mime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn parse_parameters(s: &str, parameters: &mut Vec<(String, String)>) {
6969
while let Some(piece) = semicolon_separated.next() {
7070
let piece = piece.trim_start_matches(ascii_whitespace);
7171
let (name, value) = split2(piece, '=');
72-
if name.is_empty() || !only_http_token_code_points(name) || contains(&parameters, name) {
72+
if name.is_empty() || !only_http_token_code_points(name) || contains(parameters, name) {
7373
continue;
7474
}
7575
if let Some(value) = value {

url/tests/data.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ fn urltestdata() {
4545
let failure = entry.take_key("failure").is_some();
4646

4747
#[cfg(not(feature = "idna"))]
48-
if idna_skip_inputs.contains(&input.as_str()) {
49-
continue;
48+
{
49+
if idna_skip_inputs.contains(&input.as_str()) {
50+
continue;
51+
}
5052
}
5153

5254
let base = match Url::parse(&base) {
@@ -126,9 +128,11 @@ fn setters_tests() {
126128
for mut test in tests.as_array_mut().unwrap().drain(..) {
127129
let comment = test.take_key("comment").map(|s| s.string());
128130
#[cfg(not(feature = "idna"))]
129-
if let Some(comment) = comment.as_ref() {
130-
if comment.starts_with("IDNA Nontransitional_Processing") {
131-
continue;
131+
{
132+
if let Some(comment) = comment.as_ref() {
133+
if comment.starts_with("IDNA Nontransitional_Processing") {
134+
continue;
135+
}
132136
}
133137
}
134138
let href = test.take_string("href");

0 commit comments

Comments
 (0)