Skip to content

Commit

Permalink
map -> inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
theli-ua committed Jun 24, 2021
1 parent e023164 commit 6206d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wire/dhcpv4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ impl<'a> Repr<'a> {

let data_len = dns_servers.iter().flatten()
.enumerate()
.map(|(i, ip)| {
.inspect(|(i, ip)| {
servers[(i * IP_SIZE)..((i + 1) * IP_SIZE)]
.copy_from_slice(ip.as_bytes());
}).count() * IP_SIZE;
Expand Down

0 comments on commit 6206d6a

Please sign in to comment.