Skip to content

Commit e347a5f

Browse files
committed
fix
Signed-off-by: Robert Kruszewski <[email protected]>
1 parent f0b7a23 commit e347a5f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

vortex-array/benches/dict_unreferenced_mask.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ use divan::Bencher;
77
use rand::rngs::StdRng;
88
use rand::{Rng, SeedableRng};
99
use vortex_array::IntoArray;
10-
use vortex_array::arrays::PrimitiveArray;
10+
use vortex_array::arrays::{DictArray, PrimitiveArray};
1111
use vortex_array::compute::warm_up_vtables;
12-
use vortex_dict::DictArray;
1312

1413
fn main() {
1514
warm_up_vtables();

vortex-array/src/arrays/dict/array.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ impl DictArray {
132132
AllOr::Some(buf) => {
133133
match_each_integer_ptype!(codes_primitive.ptype(), |P| {
134134
let codes = codes_primitive.as_slice::<P>();
135+
136+
#[allow(clippy::cast_possible_truncation)]
135137
buf.set_indices().for_each(|idx| {
136138
unreferenced_vec[codes[idx] as usize] = false;
137139
})

vortex-array/src/arrays/dict/compute/min_max.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use vortex_mask::Mask;
66

77
use super::{DictArray, DictVTable};
88
use crate::compute::{MinMaxKernel, MinMaxKernelAdapter, MinMaxResult, mask, min_max};
9-
use crate::{Array as _, ToCanonical, register_kernel};
9+
use crate::{Array as _, register_kernel};
1010

1111
impl MinMaxKernel for DictVTable {
1212
fn min_max(&self, array: &DictArray) -> VortexResult<Option<MinMaxResult>> {

0 commit comments

Comments
 (0)