Skip to content

Commit 102a891

Browse files
committed
Initial buffer allocator
Signed-off-by: Nicholas Gates <nick@nickgates.com>
1 parent 098474a commit 102a891

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

vortex-array/src/memory.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ mod tests {
348348
fn typed_mut_slice_rejects_length_mismatch() {
349349
let allocator = DefaultBufferAllocator;
350350
let mut writable = allocator.allocate(7, Alignment::none()).unwrap();
351-
let err = writable.as_mut_slice_typed::<u32>().unwrap_err();
352-
let msg = format!("{err}");
353-
assert!(msg.contains("not a multiple of"));
351+
assert!(writable.as_mut_slice_typed::<u32>().is_err());
354352
}
355353

356354
#[test]

0 commit comments

Comments
 (0)