diff --git a/crates/udp/src/swarm.rs b/crates/udp/src/swarm.rs index d78a7b2..72b5cdf 100644 --- a/crates/udp/src/swarm.rs +++ b/crates/udp/src/swarm.rs @@ -183,7 +183,7 @@ impl TorrentMaps { let mut t = 0; let mut f = File::open(path)?; loop { - let mut b = vec![0, 20]; + let mut b = vec![0; 20]; let n = f.read_to_end(&mut b)?; if n == 0 { break;