From b0d82b0d3f632f0292e940b4fd285eb6945490cf Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Wed, 3 Jan 2024 17:19:38 -0300 Subject: [PATCH] refactor(call): remove useless format --- src/blueprint/from_config/operators/call.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/blueprint/from_config/operators/call.rs b/src/blueprint/from_config/operators/call.rs index a79b0ae867..d5d0de9d5d 100644 --- a/src/blueprint/from_config/operators/call.rs +++ b/src/blueprint/from_config/operators/call.rs @@ -23,11 +23,8 @@ pub fn update_call( Valid::from_option(call.query.clone(), "call must have query".to_string()) .and_then(|field_name| { - Valid::from_option( - config.find_type("Query"), - format!("Query type not found on config"), - ) - .zip(Valid::succeed(field_name)) + Valid::from_option(config.find_type("Query"), "Query type not found on config".to_string()) + .zip(Valid::succeed(field_name)) }) .and_then(|(query_type, field_name)| { Valid::from_option(