apply fmt updates

This commit is contained in:
yggverse 2025-10-19 22:46:49 +03:00
parent 0f6eaa563c
commit bba51e38e8

View file

@ -33,10 +33,10 @@ pub fn from_stream_async(
size.total += bytes.len(); size.total += bytes.len();
on_chunk(bytes.clone(), size.total); on_chunk(bytes.clone(), size.total);
if let Some(limit) = size.limit { if let Some(limit) = size.limit
if size.total > limit { && size.total > limit
return on_complete(Err(Error::BytesTotal(size.total, limit))); {
} return on_complete(Err(Error::BytesTotal(size.total, limit)));
} }
if bytes.is_empty() { if bytes.is_empty() {