diff --git a/vortex-array/src/data/mod.rs b/vortex-array/src/data/mod.rs index 46f6567d93..0bc07f44b7 100644 --- a/vortex-array/src/data/mod.rs +++ b/vortex-array/src/data/mod.rs @@ -356,7 +356,7 @@ impl ArrayData { #[cfg(feature = "canonical_counter")] pub(crate) fn inc_canonical_counter(&self) { - let prev = match &self.0 { + let prev = match self.0.as_ref() { InnerArrayData::Owned(o) => o .canonical_counter .fetch_add(1, std::sync::atomic::Ordering::Relaxed),