diff --git a/apollo-federation/src/error/mod.rs b/apollo-federation/src/error/mod.rs index 1570311d325..13a9dc6b085 100644 --- a/apollo-federation/src/error/mod.rs +++ b/apollo-federation/src/error/mod.rs @@ -489,7 +489,9 @@ impl SingleFederationError { ErrorCode::InterfaceKeyMissingImplementationType } SingleFederationError::DeferredSubscriptionUnsupported => ErrorCode::Internal, - SingleFederationError::QueryPlanComplexityExceeded { .. } => ErrorCode::QueryPlanComplexityExceededError, + SingleFederationError::QueryPlanComplexityExceeded { .. } => { + ErrorCode::QueryPlanComplexityExceededError + } } } } diff --git a/apollo-router/src/query_planner/query_planner_service.rs b/apollo-router/src/query_planner/query_planner_service.rs index 1936c75de32..14809c31ac1 100644 --- a/apollo-router/src/query_planner/query_planner_service.rs +++ b/apollo-router/src/query_planner/query_planner_service.rs @@ -180,7 +180,8 @@ impl QueryPlannerService { formatted_query_plan: Some(Arc::new(plan.to_string())), query_plan_root_node: root_node.map(Arc::new), evaluated_plan_count: plan.statistics.evaluated_plan_count.clone().into_inner() as u64, - evaluated_plan_options: plan.statistics.evaluated_plan_options.clone().into_inner() as u64, + evaluated_plan_options: plan.statistics.evaluated_plan_options.clone().into_inner() + as u64, }) }