Skip to content

Commit 15ae24f

Browse files
committed
fix bug: we dont want to render WithLocation here
1 parent 00e0dba commit 15ae24f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/graphql_lang_types/src/graphql_sdl.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,11 @@ pub struct GraphQLFieldDefinition {
257257

258258
impl fmt::Display for GraphQLFieldDefinition {
259259
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
260-
write!(f, "{}", self.name)?;
261-
write_arguments(f, &self.arguments)?;
260+
write!(f, "{}", self.name.item)?;
261+
write_arguments(
262+
f,
263+
&self.arguments.iter().map(|x| &x.item).collect::<Vec<_>>(),
264+
)?;
262265
write!(f, ": {}", self.type_)?;
263266
write_directives(f, &self.directives)?;
264267
Ok(())

0 commit comments

Comments
 (0)