removed not needed namespaces

This commit is contained in:
Olexiy Buyanskyy 2020-10-23 13:51:09 +03:00
parent 3ac150bef9
commit 9f442aa750
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ impl<'a> Visitor<'a> for FieldsOnCorrectType {
.iter()
.map(|fields| fields.keys())
.flatten()
.map(std::string::String::as_str),
.map(String::as_str),
&field.node.name.node,
)
.unwrap_or_default()

View File

@ -80,7 +80,7 @@ impl<'a> Visitor<'a> for NoUndefinedVariables<'a> {
name: Option<&'a Name>,
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.defined_variables
.insert(name, (operation_definition.pos, HashSet::new()));