From 0d6e2c725fbb374af0edaf7554713019a88192ca Mon Sep 17 00:00:00 2001 From: Yongting You <2010youy01@gmail.com> Date: Thu, 28 Nov 2024 20:20:00 +0800 Subject: [PATCH] fix CI MSRV --- datafusion/functions-aggregate/src/correlation.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/datafusion/functions-aggregate/src/correlation.rs b/datafusion/functions-aggregate/src/correlation.rs index 8b1ef72bc3c00..0cbffb4538322 100644 --- a/datafusion/functions-aggregate/src/correlation.rs +++ b/datafusion/functions-aggregate/src/correlation.rs @@ -527,13 +527,12 @@ impl GroupsAccumulator for CorrelationGroupsAccumulator { } fn size(&self) -> usize { - size_of::() - * (self.count.capacity() - + self.sum_x.capacity() - + self.sum_y.capacity() - + self.sum_xy.capacity() - + self.sum_xx.capacity() - + self.sum_yy.capacity()) + std::mem::size_of_val(&self.count) + + std::mem::size_of_val(&self.sum_x) + + std::mem::size_of_val(&self.sum_y) + + std::mem::size_of_val(&self.sum_xy) + + std::mem::size_of_val(&self.sum_xx) + + std::mem::size_of_val(&self.sum_yy) } }