removed not needed namespaces
This commit is contained in:
parent
3ac150bef9
commit
9f442aa750
|
@ -40,7 +40,7 @@ impl<'a> Visitor<'a> for FieldsOnCorrectType {
|
||||||
.iter()
|
.iter()
|
||||||
.map(|fields| fields.keys())
|
.map(|fields| fields.keys())
|
||||||
.flatten()
|
.flatten()
|
||||||
.map(std::string::String::as_str),
|
.map(String::as_str),
|
||||||
&field.node.name.node,
|
&field.node.name.node,
|
||||||
)
|
)
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
|
|
|
@ -80,7 +80,7 @@ impl<'a> Visitor<'a> for NoUndefinedVariables<'a> {
|
||||||
name: Option<&'a Name>,
|
name: Option<&'a Name>,
|
||||||
operation_definition: &'a Positioned<OperationDefinition>,
|
operation_definition: &'a Positioned<OperationDefinition>,
|
||||||
) {
|
) {
|
||||||
let name = name.map(async_graphql_value::Name::as_str);
|
let name = name.map(Name::as_str);
|
||||||
self.current_scope = Some(Scope::Operation(name));
|
self.current_scope = Some(Scope::Operation(name));
|
||||||
self.defined_variables
|
self.defined_variables
|
||||||
.insert(name, (operation_definition.pos, HashSet::new()));
|
.insert(name, (operation_definition.pos, HashSet::new()));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user