From 6ef3b665f4b7b216c4edf3488124af4b068e7ca0 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Fri, 3 May 2024 09:03:12 +1000 Subject: [PATCH] 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 --- crates/bin/Cargo.toml | 2 +- crates/binstalk-downloader/Cargo.toml | 2 +- crates/binstalk-downloader/src/download.rs | 2 +- crates/binstalk-downloader/src/download/zip_extraction.rs | 2 +- crates/detect-targets/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bin/Cargo.toml b/crates/bin/Cargo.toml index 20b2f5ef..75df8b89 100644 --- a/crates/bin/Cargo.toml +++ b/crates/bin/Cargo.toml @@ -4,7 +4,7 @@ description = "Binary installation for rust projects" repository = "https://github.com/cargo-bins/cargo-binstall" documentation = "https://docs.rs/cargo-binstall" version = "1.6.4" -rust-version = "1.65.0" +rust-version = "1.70.0" authors = ["ryan "] edition = "2021" license = "GPL-3.0-only" diff --git a/crates/binstalk-downloader/Cargo.toml b/crates/binstalk-downloader/Cargo.toml index 9296a145..f5d57668 100644 --- a/crates/binstalk-downloader/Cargo.toml +++ b/crates/binstalk-downloader/Cargo.toml @@ -4,7 +4,7 @@ description = "The binstall toolkit for downloading and extracting file" repository = "https://github.com/cargo-bins/cargo-binstall" documentation = "https://docs.rs/binstalk-downloader" version = "0.10.2" -rust-version = "1.65.0" +rust-version = "1.70.0" authors = ["ryan "] edition = "2021" license = "Apache-2.0 OR MIT" diff --git a/crates/binstalk-downloader/src/download.rs b/crates/binstalk-downloader/src/download.rs index 4bb26d82..c1b7f59e 100644 --- a/crates/binstalk-downloader/src/download.rs +++ b/crates/binstalk-downloader/src/download.rs @@ -143,7 +143,7 @@ impl<'a> Download<'a> { async fn get_stream( self, ) -> Result< - impl Stream> + FusedStream + Send + Sync + Unpin + 'a, + impl FusedStream> + Send + Sync + Unpin + 'a, DownloadError, > { let mut data_verifier = self.data_verifier; diff --git a/crates/binstalk-downloader/src/download/zip_extraction.rs b/crates/binstalk-downloader/src/download/zip_extraction.rs index 329c0695..1cf028ad 100644 --- a/crates/binstalk-downloader/src/download/zip_extraction.rs +++ b/crates/binstalk-downloader/src/download/zip_extraction.rs @@ -142,7 +142,7 @@ where Ok(()) } -async fn copy_file_to_mpsc( +async fn copy_file_to_mpsc( mut entry_reader: R, tx: mpsc::Sender, buf: &mut BytesMut, diff --git a/crates/detect-targets/Cargo.toml b/crates/detect-targets/Cargo.toml index e48e7f1b..b2f2bac1 100644 --- a/crates/detect-targets/Cargo.toml +++ b/crates/detect-targets/Cargo.toml @@ -4,7 +4,7 @@ description = "Detect the target of the env at runtime" repository = "https://github.com/cargo-bins/cargo-binstall" documentation = "https://docs.rs/detect-targets" version = "0.1.16" -rust-version = "1.61.0" +rust-version = "1.62.0" authors = ["Jiahao XU "] edition = "2021" license = "Apache-2.0 OR MIT"