remove extra clone

This commit is contained in:
yggverse 2025-02-24 07:38:09 +02:00
parent f51c636401
commit 4f6799a495

View file

@ -61,9 +61,7 @@ pub fn from_stream_async(
(on_chunk, on_complete), (on_chunk, on_complete),
); );
} }
Err((bytes, e)) => { Err((b, e)) => on_complete(Err(Error::OutputStream(b, e))),
on_complete(Err(Error::OutputStream(bytes.clone(), e)))
}
} }
}, },
); );