Skip to content

Commit ba4bd86

Browse files
committed
clippy
Signed-off-by: blaginin <github@blaginin.me>
1 parent 4d0bfaf commit ba4bd86

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • vortex-array/src/aggregate_fn/fns/count

vortex-array/src/aggregate_fn/fns/count/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ mod tests {
136136
acc.accumulate(array, ctx)?;
137137
let result = acc.finish()?;
138138

139-
Ok(result
140-
.as_primitive()
141-
.typed_value::<u64>()
142-
.vortex_expect("count result should not be null") as usize)
139+
Ok(usize::try_from(
140+
result
141+
.as_primitive()
142+
.typed_value::<u64>()
143+
.vortex_expect("count result should not be null"),
144+
)?)
143145
}
144146

145147
#[test]

0 commit comments

Comments
 (0)