Remove generic variable type from QueryUnwrap trait

This commit is contained in:
Kiana Sheibani 2023-09-02 21:22:29 -04:00
parent 9d5ff8f125
commit 98f140afff
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 2 additions and 22 deletions

View file

@ -106,13 +106,8 @@ pub struct SetResponse {
}
impl<'a> QueryUnwrap<TournamentSetsVars<'a>> for TournamentSets {
type VarsUnwrapped = TournamentSetsVars<'a>;
type Unwrapped = Vec<TournamentResponse>;
fn wrap_vars(vars: TournamentSetsVars) -> TournamentSetsVars {
vars
}
// This might be the most spaghetti code I've ever written
fn unwrap_response(
response: GraphQlResponse<TournamentSets>,