Skip to content

Commit

Permalink
Fix MSRV error on 1.76.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored and korowa committed Aug 3, 2024
1 parent 5936b0f commit 764cfd0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ where
values: &[ArrayRef],
opt_filter: Option<&BooleanArray>,
) -> Result<Vec<ArrayRef>> {
let values = values[0].as_primitive::<T>();
let values = values[0].as_primitive::<T>().clone();

// Initializing state with starting values
let initial_state =
Expand All @@ -164,11 +164,11 @@ where
let (dt, values_buf, original_nulls) = values.clone().into_parts();
let nulls_buf =
NullBuffer::union(original_nulls.as_ref(), Some(&filter_nulls));
&PrimitiveArray::<T>::new(values_buf, nulls_buf).with_data_type(dt)
PrimitiveArray::<T>::new(values_buf, nulls_buf).with_data_type(dt)
}
};

let state_values = compute::binary_mut(initial_state, values, |mut x, y| {
let state_values = compute::binary_mut(initial_state, &values, |mut x, y| {
(self.prim_fn)(&mut x, y);
x
});
Expand Down

0 comments on commit 764cfd0

Please sign in to comment.