mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 08:06:38 +00:00
Refactor: gh_api_client::test::create_client
shall not be async
as there is no `.await` in it. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9f3156cea5
commit
eb77ad762b
1 changed files with 3 additions and 3 deletions
|
@ -416,7 +416,7 @@ mod test {
|
|||
|
||||
/// Mark this as an async fn so that you won't accidentally use it in
|
||||
/// sync context.
|
||||
async fn create_client() -> Vec<GhApiClient> {
|
||||
fn create_client() -> Vec<GhApiClient> {
|
||||
let client = create_remote_client();
|
||||
|
||||
let mut gh_clients = vec![GhApiClient::new(client.clone(), None)];
|
||||
|
@ -447,7 +447,7 @@ mod test {
|
|||
|
||||
let mut tests: Vec<(_, _)> = Vec::new();
|
||||
|
||||
for client in create_client().await {
|
||||
for client in create_client() {
|
||||
for repo in PUBLIC_REPOS {
|
||||
let client = client.clone();
|
||||
|
||||
|
@ -509,7 +509,7 @@ mod test {
|
|||
|
||||
let mut tasks = Vec::new();
|
||||
|
||||
for client in create_client().await {
|
||||
for client in create_client() {
|
||||
for (release, artifacts) in RELEASES {
|
||||
for artifact_name in artifacts {
|
||||
let client = client.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue