diff --git a/examples/starwars/model.rs b/examples/starwars/model.rs index 47a09cf9..d833d0cd 100644 --- a/examples/starwars/model.rs +++ b/examples/starwars/model.rs @@ -19,7 +19,7 @@ pub struct Human(usize); #[async_graphql::Object(desc = "A humanoid creature in the Star Wars universe.")] impl Human { #[field(desc = "The id of the human.")] - async fn id<'a>(&self, ctx: &Context<'_>) -> &str { + async fn id(&self, ctx: &Context<'_>) -> &str { ctx.data::().chars[self.0].id }