From 5b922b0281dd7dbda035a5b8f623cdd54a81c868 Mon Sep 17 00:00:00 2001 From: Nicholas Gates Date: Fri, 22 Mar 2024 13:18:04 +0000 Subject: [PATCH] Encoding ID --- vortex-alp/src/array.rs | 2 +- vortex-ree/src/ree.rs | 2 +- vortex-roaring/src/boolean/mod.rs | 2 +- vortex-roaring/src/integer/mod.rs | 2 +- vortex-zigzag/src/zigzag.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vortex-alp/src/array.rs b/vortex-alp/src/array.rs index c3233fb10a..3e457aa616 100644 --- a/vortex-alp/src/array.rs +++ b/vortex-alp/src/array.rs @@ -51,7 +51,7 @@ impl ALPArray { pub fn encode(array: &dyn Array) -> VortexResult { match ArrayKind::from(array) { ArrayKind::Primitive(p) => Ok(alp_encode(p)?.into_array()), - _ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())), + _ => Err(VortexError::InvalidEncoding(array.encoding().id())), } } diff --git a/vortex-ree/src/ree.rs b/vortex-ree/src/ree.rs index 6655016a21..267652a5f9 100644 --- a/vortex-ree/src/ree.rs +++ b/vortex-ree/src/ree.rs @@ -82,7 +82,7 @@ impl REEArray { ) .into_array()) } - _ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())), + _ => Err(VortexError::InvalidEncoding(array.encoding().id())), } } diff --git a/vortex-roaring/src/boolean/mod.rs b/vortex-roaring/src/boolean/mod.rs index c4cba2f46a..19cbb3eb14 100644 --- a/vortex-roaring/src/boolean/mod.rs +++ b/vortex-roaring/src/boolean/mod.rs @@ -43,7 +43,7 @@ impl RoaringBoolArray { pub fn encode(array: &dyn Array) -> VortexResult { match ArrayKind::from(array) { ArrayKind::Bool(p) => Ok(roaring_encode(p)), - _ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())), + _ => Err(VortexError::InvalidEncoding(array.encoding().id())), } } } diff --git a/vortex-roaring/src/integer/mod.rs b/vortex-roaring/src/integer/mod.rs index 5433fd15b0..297bf2a43e 100644 --- a/vortex-roaring/src/integer/mod.rs +++ b/vortex-roaring/src/integer/mod.rs @@ -55,7 +55,7 @@ impl RoaringIntArray { pub fn encode(array: &dyn Array) -> VortexResult { match ArrayKind::from(array) { ArrayKind::Primitive(p) => Ok(roaring_encode(p)), - _ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())), + _ => Err(VortexError::InvalidEncoding(array.encoding().id())), } } } diff --git a/vortex-zigzag/src/zigzag.rs b/vortex-zigzag/src/zigzag.rs index dcfe05eec8..68df1d28d5 100644 --- a/vortex-zigzag/src/zigzag.rs +++ b/vortex-zigzag/src/zigzag.rs @@ -40,7 +40,7 @@ impl ZigZagArray { pub fn encode(array: &dyn Array) -> VortexResult { match ArrayKind::from(array) { ArrayKind::Primitive(p) => Ok(zigzag_encode(p)?.into_array()), - _ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())), + _ => Err(VortexError::InvalidEncoding(array.encoding().id())), } }