Fix clippy lint error in 1.78.0 (#1679)

* Bump msrv of binstalk-downloader to 1.70.0

* Fix trait bound in multiple places

for copy_file_to_mpsc

* Rm super-trait trait bounds for FusedStream

* Bump detect-targets msrv to 1.62.0

* Bump cargo-binstall msrv to 1.70.0
This commit is contained in:
Jiahao XU 2024-05-03 09:03:12 +10:00 committed by GitHub
parent aaaa2b1387
commit 6ef3b665f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View file

@ -143,7 +143,7 @@ impl<'a> Download<'a> {
async fn get_stream(
self,
) -> Result<
impl Stream<Item = Result<Bytes, DownloadError>> + FusedStream + Send + Sync + Unpin + 'a,
impl FusedStream<Item = Result<Bytes, DownloadError>> + Send + Sync + Unpin + 'a,
DownloadError,
> {
let mut data_verifier = self.data_verifier;

View file

@ -142,7 +142,7 @@ where
Ok(())
}
async fn copy_file_to_mpsc<R: AsyncRead>(
async fn copy_file_to_mpsc<R>(
mut entry_reader: R,
tx: mpsc::Sender<Bytes>,
buf: &mut BytesMut,