From 19e76865c9440c07c7b5bad1bc51ffd3269ea703 Mon Sep 17 00:00:00 2001 From: Georg Semmler <georg_semmler_05@web.de> Date: Thu, 19 Apr 2018 16:25:33 +0200 Subject: [PATCH] Remove unused type_name field to fix tests --- juniper/src/executor/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/juniper/src/executor/mod.rs b/juniper/src/executor/mod.rs index 55c5b39e..b997a0b3 100644 --- a/juniper/src/executor/mod.rs +++ b/juniper/src/executor/mod.rs @@ -60,7 +60,6 @@ where context: &'a CtxT, errors: &'a RwLock<Vec<ExecutionError>>, field_path: FieldPath<'a>, - type_name: &'a str, } /// Error type for errors that occur during query execution @@ -330,7 +329,6 @@ impl<'a, CtxT> Executor<'a, CtxT> { context: ctx, errors: self.errors, field_path: self.field_path.clone(), - type_name: self.type_name, } } @@ -358,7 +356,6 @@ impl<'a, CtxT> Executor<'a, CtxT> { context: self.context, errors: self.errors, field_path: FieldPath::Field(field_alias, location, &self.field_path), - type_name: self.type_name, } } @@ -381,7 +378,6 @@ impl<'a, CtxT> Executor<'a, CtxT> { context: self.context, errors: self.errors, field_path: self.field_path.clone(), - type_name: type_name.unwrap(), } } @@ -590,7 +586,6 @@ where context: context, errors: &errors, field_path: FieldPath::Root(op.start), - type_name: &op.item.name.map(|n| n.item).unwrap_or(""), }; value = match op.item.operation_type {