Tweak seq iterators in test suite

This commit is contained in:
David Tolnay
2022-01-20 19:29:16 -08:00
parent 343c060fc1
commit 80d01a3a79
3 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ fn ip_addr_roundtrip() {
variant: "V4"
},
Token::Tuple { len: 4 },
..b"1234".iter().map(|&b| Token::U8(b)),
..b"1234".iter().copied().map(Token::U8),
Token::TupleEnd,
],
);
@@ -33,7 +33,7 @@ fn socket_addr_roundtrip() {
},
Token::Tuple { len: 2 },
Token::Tuple { len: 16 },
..b"1234567890123456".iter().map(|&b| Token::U8(b)),
..b"1234567890123456".iter().copied().map(Token::U8),
Token::TupleEnd,
Token::U16(1234),
Token::TupleEnd,