File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,7 @@ pub fn compare_canonical_array(
131131 }
132132}
133133
134- #[ allow( clippy:: unwrap_used) ]
135- fn compare_to < T : PartialOrd + PartialEq + Debug > (
134+ fn compare_to < T : PartialOrd > (
136135 values : impl Iterator < Item = Option < T > > ,
137136 cmp_value : T ,
138137 operator : Operator ,
@@ -148,13 +147,17 @@ fn compare_to<T: PartialOrd + PartialEq + Debug>(
148147 } ;
149148
150149 if !nullability. is_nullable ( ) {
151- BoolArray :: from_iter ( values. map ( |val| val. unwrap ( ) ) . map ( eval_fn) ) . into_array ( )
150+ BoolArray :: from_iter (
151+ values
152+ . map ( |val| val. vortex_expect ( "non nullable" ) )
153+ . map ( eval_fn) ,
154+ )
155+ . into_array ( )
152156 } else {
153157 BoolArray :: from_iter ( values. map ( |val| val. map ( eval_fn) ) ) . into_array ( )
154158 }
155159}
156160
157- #[ allow( clippy:: unwrap_used) ]
158161fn compare_native_ptype < T : NativePType > (
159162 values : impl Iterator < Item = Option < T > > ,
160163 cmp_value : T ,
@@ -171,7 +174,12 @@ fn compare_native_ptype<T: NativePType>(
171174 } ;
172175
173176 if !nullability. is_nullable ( ) {
174- BoolArray :: from_iter ( values. map ( |val| val. unwrap ( ) ) . map ( eval_fn) ) . into_array ( )
177+ BoolArray :: from_iter (
178+ values
179+ . map ( |val| val. vortex_expect ( "non nullable" ) )
180+ . map ( eval_fn) ,
181+ )
182+ . into_array ( )
175183 } else {
176184 BoolArray :: from_iter ( values. map ( |val| val. map ( eval_fn) ) ) . into_array ( )
177185 }
You can’t perform that action at this time.
0 commit comments