mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
fix vector init
This commit is contained in:
parent
7d00f0750f
commit
7a62417d18
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue