mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +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 {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ pub fn from_stream_async(
|
|||
priority: Priority,
|
||||
bytes_in_chunk: usize,
|
||||
bytes_total_limit: usize,
|
||||
on_chunk: impl Fn((Bytes, usize)) + 'static,
|
||||
on_chunk: impl Fn(Bytes, usize) + 'static,
|
||||
on_complete: impl FnOnce(Result<MemoryInputStream, Error>) + 'static,
|
||||
) {
|
||||
move_all_from_stream_async(
|
||||
|
|
@ -46,7 +46,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<MemoryInputStream, Error>) + 'static, // on_complete
|
||||
),
|
||||
) {
|
||||
|
|
@ -63,7 +63,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 bytes_total > bytes_total_limit {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue