Skip to content

Commit

Permalink
Fixed a clippy on zn_ping (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
kydos committed Sep 9, 2021
1 parent 7ae44af commit 0f76b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenoh/examples/zenoh-net/zn_ping.rs
Expand Up @@ -92,8 +92,8 @@ fn main() {
samples.push(ts);
}

for i in 0..n {
println!("{} bytes: seq={} time={:?}µs", size, i, samples[i],);
for (i, rtt) in samples.iter().enumerate().take(n) {
println!("{} bytes: seq={} time={:?}µs", size, i, rtt);
}
}

Expand Down

0 comments on commit 0f76b3b

Please sign in to comment.