mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-18 00:26:37 +00:00
Refactor: Rm param auth_token
for restful API fn
which is always set to `None` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
fc0222881c
commit
f824ebbd9c
4 changed files with 6 additions and 15 deletions
|
@ -72,7 +72,6 @@ pub(super) fn fetch_release_artifacts_restful_api(
|
|||
repo: GhRepo { owner, repo },
|
||||
tag,
|
||||
}: &GhRelease,
|
||||
auth_token: Option<&str>,
|
||||
) -> impl Future<Output = Result<Artifacts, GhApiError>> + Send + Sync + 'static {
|
||||
issue_restful_api(
|
||||
client,
|
||||
|
@ -80,7 +79,6 @@ pub(super) fn fetch_release_artifacts_restful_api(
|
|||
"repos", owner, repo, "releases", "tags",
|
||||
tag, //&percent_encode_http_url_path(tag).to_compact_string(),
|
||||
],
|
||||
auth_token,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue