We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62e2f1 commit fe23654Copy full SHA for fe23654
tests/raw_iter.rs
@@ -23,7 +23,7 @@ fn build_bgp4mp_with_len(len: u32) -> Vec<u8> {
23
length: len,
24
};
25
let mut bytes = hdr.encode().to_vec();
26
- bytes.extend(std::iter::repeat(0u8).take(len as usize));
+ bytes.extend(std::iter::repeat_n(0u8, len as usize));
27
bytes
28
}
29
0 commit comments