refactor: migrate to github gql api
This commit is contained in:
10
src/api.rs
10
src/api.rs
@@ -115,3 +115,13 @@ where
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
async fn parse_graphql_response<T>(
|
||||
res: reqwest::Response,
|
||||
) -> Result<graphql_client::Response<T>, Error>
|
||||
where
|
||||
T: serde::de::DeserializeOwned,
|
||||
{
|
||||
let data: graphql_client::Response<T> = res.json().await?;
|
||||
Ok(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user