Skip to content

Commit e2344bd

Browse files
committed
allow deprecated api
1 parent d2feb29 commit e2344bd

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
@@ -607,6 +607,7 @@ fn test_origin_unicode_serialization() {
607607
];
608608
for &(unicode_url, expected_serialization) in &data {
609609
let origin = Url::parse(unicode_url).unwrap().origin();
610+
#[allow(deprecated)]
610611
assert_eq!(origin.unicode_serialization(), *expected_serialization);
611612
}
612613

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

0 commit comments

Comments
 (0)