rename len variable

This commit is contained in:
yggverse 2025-07-08 14:08:31 +03:00
parent e51c1dc7b1
commit 8a3d05fa43

View file

@ -185,11 +185,11 @@ impl TorrentMaps {
let mut f = File::open(path)?; let mut f = File::open(path)?;
loop { loop {
let mut b = vec![0; L]; let mut b = vec![0; L];
let n = f.read(&mut b)?; let l = f.read(&mut b)?;
if n != L { if l != L {
break; break;
} }
if info_hashes.iter().any(|i| i.0 != b[..n]) { if info_hashes.iter().any(|i| i.0 != b[..l]) {
return Ok(false); return Ok(false);
} }
t += 1 t += 1