From cd442755c093ea65bf19666fda25b85b50afaa62 Mon Sep 17 00:00:00 2001 From: Josh Casale Date: Mon, 29 Apr 2024 20:22:18 -0400 Subject: [PATCH] nit --- vortex-array/src/array/chunked/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vortex-array/src/array/chunked/mod.rs b/vortex-array/src/array/chunked/mod.rs index b9f4ef4724..3003ec0ef2 100644 --- a/vortex-array/src/array/chunked/mod.rs +++ b/vortex-array/src/array/chunked/mod.rs @@ -91,13 +91,13 @@ impl ChunkedArray<'_> { } impl<'a> ChunkedArray<'a> { - pub fn chunks(&'a self) -> impl Iterator> { + pub fn chunks(&'a self) -> impl Iterator> { (0..self.nchunks()).map(|c| self.chunk(c).unwrap()) } } impl FromIterator for OwnedChunkedArray { - fn from_iter>(iter: T) -> Self { + fn from_iter>(iter: T) -> Self { let chunks: Vec = iter.into_iter().collect(); let dtype = chunks .first() @@ -109,8 +109,8 @@ impl FromIterator for OwnedChunkedArray { impl ArrayFlatten for ChunkedArray<'_> { fn flatten<'a>(self) -> VortexResult> - where - Self: 'a, + where + Self: 'a, { Ok(Flattened::Chunked(self)) } @@ -177,7 +177,7 @@ mod test { Nullability::NonNullable, ), ) - .unwrap() + .unwrap() } #[allow(dead_code)] @@ -201,9 +201,9 @@ mod test { vec![chunk1, chunk2], DType::Float(64.into(), Nullability::NonNullable), ) - .unwrap() - .to_array() - .to_static(); + .unwrap() + .to_array() + .to_static(); let array = scalar_subtract(&chunked, to_subtract).unwrap();