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
|
@ -166,7 +166,7 @@ impl GhApiClient {
|
|||
) -> Result<U, GhApiError>
|
||||
where
|
||||
GraphQLFn: Fn(&remote::Client, &T, &str) -> GraphQLFut,
|
||||
RestfulFn: Fn(&remote::Client, &T, Option<&str>) -> RestfulFut,
|
||||
RestfulFn: Fn(&remote::Client, &T) -> RestfulFut,
|
||||
GraphQLFut: Future<Output = Result<U, GhApiError>> + Send + Sync + 'static,
|
||||
RestfulFut: Future<Output = Result<U, GhApiError>> + Send + Sync + 'static,
|
||||
{
|
||||
|
@ -181,7 +181,7 @@ impl GhApiClient {
|
|||
}
|
||||
}
|
||||
|
||||
restful_func(&self.0.client, data, None)
|
||||
restful_func(&self.0.client, data)
|
||||
.await
|
||||
.map_err(|err| err.context("Restful API"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue