From 9d2e936eb86e6b042970aeedab598f22da9062a4 Mon Sep 17 00:00:00 2001 From: phiresky Date: Fri, 18 Dec 2020 13:53:13 +0100 Subject: [PATCH] formatting and tests --- src/functions.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/functions.rs b/src/functions.rs index 19e5c5a..0b09701 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -911,7 +911,7 @@ mod test { struct Count; impl Aggregate> for Sum { - fn init(&self) -> i64 { + fn init(&self, _: &mut Context<'_>) -> i64 { 0 } @@ -920,13 +920,13 @@ mod test { Ok(()) } - fn finalize(&self, sum: Option) -> Result> { + fn finalize(&self, _: &mut Context<'_>, sum: Option) -> Result> { Ok(sum) } } impl Aggregate for Count { - fn init(&self) -> i64 { + fn init(&self, _: &mut Context<'_>) -> i64 { 0 } @@ -935,7 +935,7 @@ mod test { Ok(()) } - fn finalize(&self, sum: Option) -> Result { + fn finalize(&self, _: &mut Context<'_>, sum: Option) -> Result { Ok(sum.unwrap_or(0)) } }