From 21e5937c679b0e35b5231f4eb8c3322347cc8dd4 Mon Sep 17 00:00:00 2001 From: Giovanni Cuccu Date: Sat, 20 Apr 2024 10:20:18 +0200 Subject: [PATCH] fix format --- src/aggregation/agg_req_with_accessor.rs | 3 ++- src/aggregation/agg_result.rs | 4 +++- src/aggregation/metric/stats.rs | 1 + src/aggregation/segment_agg_result.rs | 5 +++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/aggregation/agg_req_with_accessor.rs b/src/aggregation/agg_req_with_accessor.rs index 291e9b909..288480615 100644 --- a/src/aggregation/agg_req_with_accessor.rs +++ b/src/aggregation/agg_req_with_accessor.rs @@ -276,7 +276,8 @@ impl AggregationWithAccessor { .. }) | ExtendedStats(ExtendedStatsAggregation { - field: ref field_name, .. + field: ref field_name, + .. }) | Sum(SumAggregation { field: ref field_name, diff --git a/src/aggregation/agg_result.rs b/src/aggregation/agg_result.rs index a032ad121..aac1efac4 100644 --- a/src/aggregation/agg_result.rs +++ b/src/aggregation/agg_result.rs @@ -8,7 +8,9 @@ use rustc_hash::FxHashMap; use serde::{Deserialize, Serialize}; use super::bucket::GetDocCount; -use super::metric::{ExtendedStats, PercentilesMetricResult, SingleMetricResult, Stats, TopHitsMetricResult}; +use super::metric::{ + ExtendedStats, PercentilesMetricResult, SingleMetricResult, Stats, TopHitsMetricResult, +}; use super::{AggregationError, Key}; use crate::TantivyError; diff --git a/src/aggregation/metric/stats.rs b/src/aggregation/metric/stats.rs index f4d88f035..a935a6a62 100644 --- a/src/aggregation/metric/stats.rs +++ b/src/aggregation/metric/stats.rs @@ -1,4 +1,5 @@ use std::fmt::Debug; + use serde::{Deserialize, Serialize}; use super::*; diff --git a/src/aggregation/segment_agg_result.rs b/src/aggregation/segment_agg_result.rs index f119b5d56..0308355e8 100644 --- a/src/aggregation/segment_agg_result.rs +++ b/src/aggregation/segment_agg_result.rs @@ -16,8 +16,9 @@ use super::metric::{ SumAggregation, }; use crate::aggregation::bucket::TermMissingAgg; -use crate::aggregation::metric::TopHitsSegmentCollector; -use crate::aggregation::metric::{IntermediateExtendedStats, IntermediateInnerStatsCollector}; +use crate::aggregation::metric::{ + IntermediateExtendedStats, IntermediateInnerStatsCollector, TopHitsSegmentCollector, +}; pub(crate) trait SegmentAggregationCollector: CollectorClone + Debug { fn add_intermediate_aggregation_result(