From 5ebd8e184232756d878c24e0cd0b382b33516279 Mon Sep 17 00:00:00 2001 From: xxchan Date: Fri, 9 Aug 2024 21:43:40 +0800 Subject: [PATCH] fix lint --- src/common/src/array/list_array.rs | 4 ++-- src/expr/impl/src/scalar/array.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/src/array/list_array.rs b/src/common/src/array/list_array.rs index d936ffff95c5d..2d68e5eb35f1f 100644 --- a/src/common/src/array/list_array.rs +++ b/src/common/src/array/list_array.rs @@ -604,12 +604,12 @@ impl<'a> ListRef<'a> { let (k, v) = self.array.as_struct().fields().collect_tuple().unwrap(); ( ListRef { - array: &k, + array: k, start: self.start, end: self.end, }, ListRef { - array: &v, + array: v, start: self.start, end: self.end, }, diff --git a/src/expr/impl/src/scalar/array.rs b/src/expr/impl/src/scalar/array.rs index cf7e657b8c025..c23c69cd76f94 100644 --- a/src/expr/impl/src/scalar/array.rs +++ b/src/expr/impl/src/scalar/array.rs @@ -98,9 +98,9 @@ fn map(key: ListRef<'_>, value: ListRef<'_>) -> Result { /// NULL /// ``` #[function("map_access(anymap, any) -> any")] -fn map_access<'a, 'b>( +fn map_access<'a>( map: MapRef<'a>, - key: ScalarRefImpl<'b>, + key: ScalarRefImpl<'_>, ) -> Result>, ExprError> { // FIXME: DatumRef in return value is not support by the macro yet.