mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +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 t = 0;
|
||||||
let mut f = File::open(path)?;
|
let mut f = File::open(path)?;
|
||||||
loop {
|
loop {
|
||||||
let mut b = vec![0, 20];
|
let mut b = vec![0; 20];
|
||||||
let n = f.read_to_end(&mut b)?;
|
let n = f.read_to_end(&mut b)?;
|
||||||
if n == 0 {
|
if n == 0 {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue