mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 09:35:33 +00:00
remove extra tuple
This commit is contained in:
parent
eb32db3d3b
commit
f33e53e51b
2 changed files with 5 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ pub fn move_all_from_stream_async(
|
|||
usize, // bytes_total
|
||||
),
|
||||
callback: (
|
||||
impl Fn((Bytes, usize)) + 'static, // on_chunk
|
||||
impl Fn(Bytes, usize) + 'static, // on_chunk
|
||||
impl FnOnce(Result<FileOutputStream, Error>) + 'static, // on_complete
|
||||
),
|
||||
) {
|
||||
|
|
@ -38,7 +38,7 @@ pub fn move_all_from_stream_async(
|
|||
let bytes_total = bytes_total + bytes.len();
|
||||
|
||||
// Callback chunk function
|
||||
on_chunk((bytes.clone(), bytes_total));
|
||||
on_chunk(bytes.clone(), bytes_total);
|
||||
|
||||
// Validate max size
|
||||
if let Some(bytes_total_limit) = bytes_total_limit {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue