mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-20 09:36:42 +00:00
Re enable h3 in reqwest and remove impl Sync
on returned Future in binstalk-git-repo-api
(#1783)
* Upgrade transitive dependencies Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Re-enable h3 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix `binstalk-git-repo-api` Remove `Sync` bound on returned `Future`, since `tokio::spawn` does not require it Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
fc1117d0e4
commit
ef7ca1ba9f
6 changed files with 130 additions and 48 deletions
|
@ -74,7 +74,7 @@ pub(super) fn fetch_release_artifacts_restful_api(
|
|||
tag,
|
||||
}: &GhRelease,
|
||||
auth_token: Option<&str>,
|
||||
) -> impl Future<Output = Result<Artifacts, GhApiError>> + Send + Sync + 'static {
|
||||
) -> impl Future<Output = Result<Artifacts, GhApiError>> + Send + 'static {
|
||||
issue_restful_api(
|
||||
client,
|
||||
&["repos", owner, repo, "releases", "tags", tag],
|
||||
|
@ -135,7 +135,7 @@ pub(super) fn fetch_release_artifacts_graphql_api(
|
|||
tag,
|
||||
}: &GhRelease,
|
||||
auth_token: &str,
|
||||
) -> impl Future<Output = Result<Artifacts, GhApiError>> + Send + Sync + 'static {
|
||||
) -> impl Future<Output = Result<Artifacts, GhApiError>> + Send + 'static {
|
||||
let client = client.clone();
|
||||
let auth_token = auth_token.to_compact_string();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue