fix totals increment position

This commit is contained in:
yggverse 2025-07-09 20:53:55 +03:00
parent ac88344098
commit 5c72742f8d

View file

@ -356,8 +356,8 @@ fn list(info: &TorrentMetaV1Info<ByteBufOwned>, limit: usize) -> Option<Vec<(Str
let mut i = files.iter(); let mut i = files.iter();
let mut t = 0; let mut t = 0;
for f in i.by_ref() { for f in i.by_ref() {
t += 1;
if t < limit { if t < limit {
t += 1;
b.push(( b.push((
String::from_utf8( String::from_utf8(
f.path f.path