diff --git a/models/dynamic-books/src/model.rs b/models/dynamic-books/src/model.rs index ba466e0..a7f5695 100644 --- a/models/dynamic-books/src/model.rs +++ b/models/dynamic-books/src/model.rs @@ -3,7 +3,7 @@ use futures_util::StreamExt; use crate::{simple_broker::SimpleBroker, Book, BookChanged, MutationType, Storage}; -impl<'a> From for FieldValue<'a> { +impl From for FieldValue<'_> { fn from(value: MutationType) -> Self { match value { MutationType::Created => FieldValue::value("CREATED"), diff --git a/models/dynamic-starwars/src/model.rs b/models/dynamic-starwars/src/model.rs index a307afb..c660b96 100644 --- a/models/dynamic-starwars/src/model.rs +++ b/models/dynamic-starwars/src/model.rs @@ -2,7 +2,7 @@ use async_graphql::{dynamic::*, Value}; use crate::{Episode, StarWars, StarWarsChar}; -impl<'a> From for FieldValue<'a> { +impl From for FieldValue<'_> { fn from(value: Episode) -> Self { match value { Episode::NewHope => FieldValue::value("NEW_HOPE"),