Skip to content

Commit 6654439

Browse files
committed
#[allow(deprecate)] on tests
1 parent 6a31479 commit 6654439

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ impl Arbitrary for Proto {
148148
28 => Proto(Utp),
149149
29 => Proto(WebTransport),
150150
30 => Proto(Ws("/".into())),
151-
31 => Proto(Wss("/".into())),
151+
31 => Proto(
152+
#[allow(deprecated)]
153+
Wss("/".into()),
154+
),
152155
32 => Proto(Ip6zone(Cow::Owned(SubString::arbitrary(g).0))),
153156
33 => Proto(Ipcidr(Arbitrary::arbitrary(g))),
154157
34 => {
@@ -367,7 +370,7 @@ fn construct_success() {
367370
]);
368371
ma_valid("/ip6/2001:8a0:7ac5:4201:3ac9:86ff:fe31:7095/tcp/8000/wss/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC",
369372
"29200108A07AC542013AC986FFFE317095061F40DE03A503221220D52EBB89D85B02A284948203A62FF28389C57C9F42BEEC4EC20DB76A68911C0B",
370-
vec![Ip6(addr6), Tcp(8000), Wss("/".into()), P2p(peer_id("QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC"))]);
373+
vec![Ip6(addr6), Tcp(8000), #[allow(deprecated)] Wss("/".into()), P2p(peer_id("QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC"))]);
371374
ma_valid("/ip4/127.0.0.1/tcp/9090/p2p-circuit/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC",
372375
"047F000001062382A202A503221220D52EBB89D85B02A284948203A62FF28389C57C9F42BEEC4EC20DB76A68911C0B",
373376
vec![Ip4(local), Tcp(9090), P2pCircuit, P2p(peer_id("QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC"))]);

0 commit comments

Comments
 (0)