We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32f6da7 commit 098474aCopy full SHA for 098474a
1 file changed
vortex-array/src/memory.rs
@@ -4,7 +4,6 @@
4
//! Session-scoped memory allocation for host-side buffers.
5
6
use std::fmt::Debug;
7
-use std::mem::align_of;
8
use std::mem::size_of;
9
use std::sync::Arc;
10
@@ -120,7 +119,7 @@ impl WritableHostBuffer {
120
119
let type_align = Alignment::of::<T>();
121
122
vortex_ensure!(
123
- byte_len % type_size == 0,
+ byte_len.is_multiple_of(type_size),
124
InvalidArgument: "Buffer length {byte_len} is not a multiple of {} for {}",
125
type_size,
126
std::any::type_name::<T>()
0 commit comments