File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -597,6 +597,7 @@ fn test_origin_opaque() {
597
597
598
598
#[ test]
599
599
#[ cfg( not( target_arch = "wasm32" ) ) ]
600
+ #[ allow( deprecated) ]
600
601
fn test_origin_unicode_serialization ( ) {
601
602
let data = [
602
603
( "http://😅.com" , "http://😅.com" ) ,
@@ -606,7 +607,6 @@ fn test_origin_unicode_serialization() {
606
607
] ;
607
608
for & ( unicode_url, expected_serialization) in & data {
608
609
let origin = Url :: parse ( unicode_url) . unwrap ( ) . origin ( ) ;
609
- #[ allow( deprecated) ]
610
610
assert_eq ! ( origin. unicode_serialization( ) , * expected_serialization) ;
611
611
}
612
612
@@ -626,7 +626,6 @@ fn test_origin_unicode_serialization() {
626
626
Url :: parse ( "http://127.0.0.1" ) . unwrap ( ) . origin ( ) ,
627
627
] ;
628
628
for ascii_origin in & ascii_origins {
629
- #[ allow( deprecated) ]
630
629
assert_eq ! (
631
630
ascii_origin. ascii_serialization( ) ,
632
631
ascii_origin. unicode_serialization( )
Original file line number Diff line number Diff line change @@ -142,7 +142,12 @@ fn main() {
142
142
#[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
143
143
{
144
144
// 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 ( ) ;
146
151
if user_agent. contains ( "chrom" ) {
147
152
expected_failures. extend ( include_str ! ( "expected_failures_chromium.txt" ) . lines ( ) ) ;
148
153
}
You can’t perform that action at this time.
0 commit comments