mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
formatting and tests
This commit is contained in:
parent
eff747b756
commit
9d2e936eb8
@ -911,7 +911,7 @@ mod test {
|
||||
struct Count;
|
||||
|
||||
impl Aggregate<i64, Option<i64>> 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<i64>) -> Result<Option<i64>> {
|
||||
fn finalize(&self, _: &mut Context<'_>, sum: Option<i64>) -> Result<Option<i64>> {
|
||||
Ok(sum)
|
||||
}
|
||||
}
|
||||
|
||||
impl Aggregate<i64, i64> 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<i64>) -> Result<i64> {
|
||||
fn finalize(&self, _: &mut Context<'_>, sum: Option<i64>) -> Result<i64> {
|
||||
Ok(sum.unwrap_or(0))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user