diff --git a/examples/grpc/routeguide/src/main.rs b/examples/grpc/routeguide/src/main.rs index 969a2df56b..52a1a8ea27 100644 --- a/examples/grpc/routeguide/src/main.rs +++ b/examples/grpc/routeguide/src/main.rs @@ -83,7 +83,7 @@ impl RouteGuide for RouteGuideService { while let Some(note) = stream.next().await { let note = note?; - let location = note.location.clone().unwrap(); + let location = note.location.unwrap(); let location_notes = notes.entry(location).or_insert(vec![]); location_notes.push(note); diff --git a/examples/poem/async-graphql/Cargo.toml b/examples/poem/async-graphql/Cargo.toml index eab6dd8d22..86c80ad525 100644 --- a/examples/poem/async-graphql/Cargo.toml +++ b/examples/poem/async-graphql/Cargo.toml @@ -7,6 +7,6 @@ publish.workspace = true [dependencies] poem.workspace = true tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } -async-graphql = "5.0.10" +async-graphql = "7.0.7" slab = "0.4.4" tracing-subscriber.workspace = true diff --git a/examples/poem/async-graphql/src/starwars/model.rs b/examples/poem/async-graphql/src/starwars/model.rs index b5a001c889..f14729eb41 100644 --- a/examples/poem/async-graphql/src/starwars/model.rs +++ b/examples/poem/async-graphql/src/starwars/model.rs @@ -172,11 +172,12 @@ impl QueryRoot { } #[derive(Interface)] +#[allow(clippy::duplicated_attributes)] #[graphql( - field(name = "id", type = "&str"), - field(name = "name", type = "&str"), - field(name = "friends", type = "Vec>"), - field(name = "appears_in", type = "&[Episode]") + field(name = "id", ty = "&str"), + field(name = "name", ty = "&str"), + field(name = "friends", ty = "Vec>"), + field(name = "appears_in", ty = "&[Episode]") )] pub enum Character<'a> { Human(Human<'a>),