Skip to content

Commit fe23654

Browse files
committed
apply clippy fix
1 parent e62e2f1 commit fe23654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/raw_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn build_bgp4mp_with_len(len: u32) -> Vec<u8> {
2323
length: len,
2424
};
2525
let mut bytes = hdr.encode().to_vec();
26-
bytes.extend(std::iter::repeat(0u8).take(len as usize));
26+
bytes.extend(std::iter::repeat_n(0u8, len as usize));
2727
bytes
2828
}
2929

0 commit comments

Comments
 (0)