Rm unused trait bound in extract_impl

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-18 18:12:13 +10:00
parent 621a641529
commit b152358175
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -32,7 +32,6 @@ use crate::{BinstallError, TarBasedFmt};
async fn extract_impl<T, S, F, E>(stream: S, f: F) -> Result<T, BinstallError> async fn extract_impl<T, S, F, E>(stream: S, f: F) -> Result<T, BinstallError>
where where
T: Debug + Send + 'static,
S: Stream<Item = Result<Bytes, E>> + Unpin, S: Stream<Item = Result<Bytes, E>> + Unpin,
F: FnOnce(StreamReadable<S>) -> Result<T, BinstallError>, F: FnOnce(StreamReadable<S>) -> Result<T, BinstallError>,
BinstallError: From<E>, BinstallError: From<E>,