From a77eb50b16dfa2bcf222c90303e1d5ca76af7c13 Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Fri, 8 Jul 2022 18:49:33 +0200 Subject: [PATCH] Update src/compute/cast/dictionary_to.rs Co-authored-by: Jorge Leitao --- src/compute/cast/dictionary_to.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/compute/cast/dictionary_to.rs b/src/compute/cast/dictionary_to.rs index 9016118bd82..acd22b9a90a 100644 --- a/src/compute/cast/dictionary_to.rs +++ b/src/compute/cast/dictionary_to.rs @@ -143,11 +143,9 @@ pub(super) fn dictionary_cast_dyn( // Safety: // we return an error on overflow so the integers remain within bounds - unsafe { - match_integer_type!(to_keys_type, |$T| { - key_cast!(keys, values, array, &to_key_type, $T, to_type.clone()) - }) - } + match_integer_type!(to_keys_type, |$T| { + key_cast!(keys, values, array, &to_key_type, $T, to_type.clone()) + }) } _ => unpack_dictionary::(keys, values.as_ref(), to_type, options), }