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)) } }