Skip to content

Commit 78be69e

Browse files
authored
chore(interop): Replace repeat and take with repeat_n (#2170)
1 parent f07abb2 commit 78be69e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interop/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ pub fn trace_init() {
1818
pub fn client_payload(size: usize) -> pb::Payload {
1919
pb::Payload {
2020
r#type: default::Default::default(),
21-
body: iter::repeat(0u8).take(size).collect(),
21+
body: iter::repeat_n(0u8, size).collect(),
2222
}
2323
}
2424

2525
pub fn server_payload(size: usize) -> pb::Payload {
2626
pb::Payload {
2727
r#type: default::Default::default(),
28-
body: iter::repeat(0u8).take(size).collect(),
28+
body: iter::repeat_n(0u8, size).collect(),
2929
}
3030
}
3131

0 commit comments

Comments
 (0)