Skip to content

Commit e423c6c

Browse files
committed
fix lints
1 parent 04c4e7d commit e423c6c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

url/tests/unit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ fn test_origin_opaque() {
597597

598598
#[test]
599599
#[cfg(not(target_arch = "wasm32"))]
600+
#[allow(deprecated)]
600601
fn test_origin_unicode_serialization() {
601602
let data = [
602603
("http://😅.com", "http://😅.com"),
@@ -606,7 +607,6 @@ fn test_origin_unicode_serialization() {
606607
];
607608
for &(unicode_url, expected_serialization) in &data {
608609
let origin = Url::parse(unicode_url).unwrap().origin();
609-
#[allow(deprecated)]
610610
assert_eq!(origin.unicode_serialization(), *expected_serialization);
611611
}
612612

@@ -626,7 +626,6 @@ fn test_origin_unicode_serialization() {
626626
Url::parse("http://127.0.0.1").unwrap().origin(),
627627
];
628628
for ascii_origin in &ascii_origins {
629-
#[allow(deprecated)]
630629
assert_eq!(
631630
ascii_origin.ascii_serialization(),
632631
ascii_origin.unicode_serialization()

url/tests/wpt.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ fn main() {
142142
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
143143
{
144144
// Every browser has its quirks.
145-
let user_agent = web_sys::window().unwrap().navigator().user_agent().unwrap().to_ascii_lowercase();
145+
let user_agent = web_sys::window()
146+
.unwrap()
147+
.navigator()
148+
.user_agent()
149+
.unwrap()
150+
.to_ascii_lowercase();
146151
if user_agent.contains("chrom") {
147152
expected_failures.extend(include_str!("expected_failures_chromium.txt").lines());
148153
}

0 commit comments

Comments
 (0)