From 6621359b03224b40a5321dceedb2d1beb56ef37f Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Thu, 23 Jan 2025 14:50:20 +0200 Subject: [PATCH] cargo fmt --- rust/cubesql/cubesql/src/compile/rewrite/converter.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rust/cubesql/cubesql/src/compile/rewrite/converter.rs b/rust/cubesql/cubesql/src/compile/rewrite/converter.rs index 9e31712ef7842..e18be36d9893c 100644 --- a/rust/cubesql/cubesql/src/compile/rewrite/converter.rs +++ b/rust/cubesql/cubesql/src/compile/rewrite/converter.rs @@ -1825,15 +1825,17 @@ impl LanguageToLogicalPlanConverter { let values = match_data_node!(node_by_id, params[2], FilterMemberValues); if !is_in_or && op == "inDateRange" { - let existing_time_dimensions: Vec<_> = - query_time_dimensions.iter_mut().filter_map(|td| { + let existing_time_dimensions: Vec<_> = query_time_dimensions + .iter_mut() + .filter_map(|td| { if td.dimension == member && td.date_range.is_none() { td.date_range = Some(json!(values)); Some(td) } else { None } - }).collect(); + }) + .collect(); if existing_time_dimensions.len() == 0 { let dimension = V1LoadRequestQueryTimeDimension { dimension: member.to_string(),