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 @@ -598,6 +598,7 @@ fn test_origin_opaque() {
598
598
599
599
#[ test]
600
600
#[ cfg( not( target_arch = "wasm32" ) ) ]
601
+ #[ allow( deprecated) ]
601
602
fn test_origin_unicode_serialization ( ) {
602
603
let data = [
603
604
( "http://😅.com" , "http://😅.com" ) ,
@@ -607,7 +608,6 @@ fn test_origin_unicode_serialization() {
607
608
] ;
608
609
for & ( unicode_url, expected_serialization) in & data {
609
610
let origin = Url :: parse ( unicode_url) . unwrap ( ) . origin ( ) ;
610
- #[ allow( deprecated) ]
611
611
assert_eq ! ( origin. unicode_serialization( ) , * expected_serialization) ;
612
612
}
613
613
@@ -627,7 +627,6 @@ fn test_origin_unicode_serialization() {
627
627
Url :: parse ( "http://127.0.0.1" ) . unwrap ( ) . origin ( ) ,
628
628
] ;
629
629
for ascii_origin in & ascii_origins {
630
- #[ allow( deprecated) ]
631
630
assert_eq ! (
632
631
ascii_origin. ascii_serialization( ) ,
633
632
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