From 1c656e87d5fa2ef5dbf523294c85b7048af25449 Mon Sep 17 00:00:00 2001 From: Will Manning Date: Wed, 9 Oct 2024 09:39:38 -0400 Subject: [PATCH] fmt --- .../src/compressors/roaring_int.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/vortex-sampling-compressor/src/compressors/roaring_int.rs b/vortex-sampling-compressor/src/compressors/roaring_int.rs index 260f56bfdb..78927fab20 100644 --- a/vortex-sampling-compressor/src/compressors/roaring_int.rs +++ b/vortex-sampling-compressor/src/compressors/roaring_int.rs @@ -58,16 +58,23 @@ impl EncodingCompressor for RoaringIntCompressor { #[cfg(test)] mod tests { - use vortex::{array::PrimitiveArray, validity::Validity, IntoArray}; + use vortex::array::PrimitiveArray; + use vortex::validity::Validity; + use vortex::IntoArray; use vortex_roaring::RoaringIntArray; - use crate::{compressors::{roaring_int::RoaringIntCompressor, EncodingCompressor as _}, SamplingCompressor}; + use crate::compressors::roaring_int::RoaringIntCompressor; + use crate::compressors::EncodingCompressor as _; + use crate::SamplingCompressor; #[test] fn test_roaring_int_compressor() { - let array = PrimitiveArray::from_vec(vec![1u32, 2, 3, 4, 5], Validity::NonNullable).into_array(); + let array = + PrimitiveArray::from_vec(vec![1u32, 2, 3, 4, 5], Validity::NonNullable).into_array(); assert!(RoaringIntCompressor.can_compress(&array).is_some()); - let compressed = RoaringIntCompressor.compress(&array, None, SamplingCompressor::default()).unwrap(); + let compressed = RoaringIntCompressor + .compress(&array, None, SamplingCompressor::default()) + .unwrap(); assert_eq!(compressed.array.len(), 5); assert!(compressed.path.is_some());