Skip to content

Commit a69e720

Browse files
authored
Merge pull request #355 from visd0m/remove-static-lifetime-from-generated-code
Remove static lifetime from generated code
2 parents eddbcd1 + 86b5fed commit a69e720

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graphql_client_codegen/src/generated_module.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ impl<'a> GeneratedModule<'a> {
8686

8787
use std::result::Result;
8888

89-
pub const OPERATION_NAME: &'static str = #operation_name;
90-
pub const QUERY: &'static str = #query_string;
89+
pub const OPERATION_NAME: &str = #operation_name;
90+
pub const QUERY: &str = #query_string;
9191

9292
#query_include
9393

graphql_client_codegen/src/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ impl UsedTypes {
608608
.map(move |enum_id| (enum_id, schema.get_enum(enum_id)))
609609
}
610610

611-
pub(crate) fn fragment_ids<'b>(&'b self) -> impl Iterator<Item = ResolvedFragmentId> + 'b {
611+
pub(crate) fn fragment_ids(&self) -> impl Iterator<Item = ResolvedFragmentId> + '_ {
612612
self.fragments.iter().copied()
613613
}
614614
}

0 commit comments

Comments
 (0)