Skip to content

Commit

Permalink
chore: remove unused lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmylee committed Dec 17, 2023
1 parent 0f56f89 commit f6b333d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/parser_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ where
.unwrap_or_else(|| query_field.name.as_ref().to_string())
}

pub fn merge_fields<'a, 'b, T, I>(
pub fn merge_fields<'a, T, I>(
target_fields: &mut Vec<Field<'a, T>>,
next_fields: I,
) -> Result<(), String>
Expand Down Expand Up @@ -108,8 +108,8 @@ where
}

/// Combines @skip and @include
pub fn selection_is_skipped<'a, 'b, T>(
query_selection: &'b Selection<'a, T>,
pub fn selection_is_skipped<'a, T>(
query_selection: &Selection<'a, T>,
variables: &serde_json::Value,
) -> Result<bool, String>
where
Expand Down
8 changes: 4 additions & 4 deletions src/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ where
}
}

fn resolve_query<'a, 'b, T>(
fn resolve_query<'a, T>(
query: Query<'a, T>,
schema_type: &__Schema,
variables: &Value,
Expand All @@ -127,7 +127,7 @@ where
)
}

fn resolve_selection_set<'a, 'b, T>(
fn resolve_selection_set<'a, T>(
selection_set: SelectionSet<'a, T>,
schema_type: &__Schema,
variables: &Value,
Expand Down Expand Up @@ -315,7 +315,7 @@ where
}
}

fn resolve_mutation<'a, 'b, T>(
fn resolve_mutation<'a, T>(
query: Mutation<'a, T>,
schema_type: &__Schema,
variables: &Value,
Expand All @@ -334,7 +334,7 @@ where
)
}

fn resolve_mutation_selection_set<'a, 'b, T>(
fn resolve_mutation_selection_set<'a, T>(
selection_set: SelectionSet<'a, T>,
schema_type: &__Schema,
variables: &Value,
Expand Down

0 comments on commit f6b333d

Please sign in to comment.