b18fe07fbb87db2c92aab740425fe50632da130b — Kyle Jones 4 months ago e1441f5 master
bugfix: Fuse is not the correct iterator here

We want this to be a pattern of 16, 0, repeat, which is provided by cycle(), not fuse() since fuse will not start over at the end, but will force the iterator to produce None once it ever reaches that state. I chose the wrong one.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/dns_packet/dns_record.rs
M src/dns_packet/dns_record.rs => src/dns_packet/dns_record.rs +1 -1
@@ 73,7 73,7 @@ impl DnsRecord {
                    .map(|_| buffer.read_u32().expect("Next raw address group"))
                let addr_groups: Vec<u16> = {
                    let shifts = vec![16u8, 0].into_iter().fuse();
                    let shifts = vec![16u8, 0].into_iter().cycle();