From 68fe72488bdfc3ca70fa26c642c411a6ae20d2f8 Mon Sep 17 00:00:00 2001 From: yjhmelody <465402634@qq.com> Date: Fri, 8 Oct 2021 17:21:48 +0800 Subject: [PATCH] chore: use static-typed equal functions directly instead --- src/array/equal/mod.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/array/equal/mod.rs b/src/array/equal/mod.rs index d85a450ccb6..7aa200a8b44 100644 --- a/src/array/equal/mod.rs +++ b/src/array/equal/mod.rs @@ -23,7 +23,7 @@ impl PartialEq for dyn Array { impl PartialEq for NullArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + null::equal(self, other) } } @@ -41,7 +41,7 @@ impl PartialEq<&dyn Array> for PrimitiveArray { impl PartialEq> for PrimitiveArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + primitive::equal::(self, other) } } @@ -59,7 +59,7 @@ impl PartialEq<&dyn Array> for BooleanArray { impl PartialEq> for Utf8Array { fn eq(&self, other: &Self) -> bool { - equal(self, other) + utf8::equal(self, other) } } @@ -71,7 +71,7 @@ impl PartialEq<&dyn Array> for Utf8Array { impl PartialEq> for BinaryArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + binary::equal(self, other) } } @@ -83,7 +83,7 @@ impl PartialEq<&dyn Array> for BinaryArray { impl PartialEq for FixedSizeBinaryArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + fixed_size_binary::equal(self, other) } } @@ -95,7 +95,7 @@ impl PartialEq<&dyn Array> for FixedSizeBinaryArray { impl PartialEq> for ListArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + list::equal(self, other) } } @@ -107,7 +107,7 @@ impl PartialEq<&dyn Array> for ListArray { impl PartialEq for FixedSizeListArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + fixed_size_list::equal(self, other) } } @@ -119,7 +119,7 @@ impl PartialEq<&dyn Array> for FixedSizeListArray { impl PartialEq for StructArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + struct_::equal(self, other) } } @@ -131,7 +131,7 @@ impl PartialEq<&dyn Array> for StructArray { impl PartialEq> for DictionaryArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + dictionary::equal(self, other) } } @@ -143,7 +143,7 @@ impl PartialEq<&dyn Array> for DictionaryArray { impl PartialEq for UnionArray { fn eq(&self, other: &Self) -> bool { - equal(self, other) + union::equal(self, other) } }