Skip to content

Commit 69bc9ae

Browse files
committed
allow deprecated api
1 parent 57842b0 commit 69bc9ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

url/tests/unit.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ fn test_origin_unicode_serialization() {
606606
];
607607
for &(unicode_url, expected_serialization) in &data {
608608
let origin = Url::parse(unicode_url).unwrap().origin();
609+
#[allow(deprecated)]
609610
assert_eq!(origin.unicode_serialization(), *expected_serialization);
610611
}
611612

@@ -625,6 +626,7 @@ fn test_origin_unicode_serialization() {
625626
Url::parse("http://127.0.0.1").unwrap().origin(),
626627
];
627628
for ascii_origin in &ascii_origins {
629+
#[allow(deprecated)]
628630
assert_eq!(
629631
ascii_origin.ascii_serialization(),
630632
ascii_origin.unicode_serialization()

0 commit comments

Comments
 (0)