@@ -168,11 +168,8 @@ where
168
168
. downcast_ref :: < E :: Array > ( )
169
169
. vortex_expect ( "Failed to downcast array" ) ;
170
170
let vtable = array. vtable ( ) ;
171
- let encoding = vtable
172
- . as_any ( )
173
- . downcast_ref :: < E > ( )
174
- . vortex_expect ( "Failed to downcast encoding" ) ;
175
- SearchSortedFn :: search_sorted ( encoding, array_ref, value, side)
171
+
172
+ SearchSortedFn :: search_sorted ( self , array_ref, value, side)
176
173
}
177
174
178
175
fn search_sorted_many (
@@ -186,11 +183,8 @@ where
186
183
. downcast_ref :: < E :: Array > ( )
187
184
. vortex_expect ( "Failed to downcast array" ) ;
188
185
let vtable = array. vtable ( ) ;
189
- let encoding = vtable
190
- . as_any ( )
191
- . downcast_ref :: < E > ( )
192
- . vortex_expect ( "Failed to downcast encoding" ) ;
193
- SearchSortedFn :: search_sorted_many ( encoding, array_ref, values, side)
186
+
187
+ SearchSortedFn :: search_sorted_many ( self , array_ref, values, side)
194
188
}
195
189
}
196
190
@@ -209,11 +203,8 @@ where
209
203
. downcast_ref :: < E :: Array > ( )
210
204
. vortex_expect ( "Failed to downcast array" ) ;
211
205
let vtable = array. vtable ( ) ;
212
- let encoding = vtable
213
- . as_any ( )
214
- . downcast_ref :: < E > ( )
215
- . vortex_expect ( "Failed to downcast encoding" ) ;
216
- SearchSortedUsizeFn :: search_sorted_usize ( encoding, array_ref, value, side)
206
+
207
+ SearchSortedUsizeFn :: search_sorted_usize ( self , array_ref, value, side)
217
208
}
218
209
219
210
fn search_sorted_usize_many (
@@ -227,11 +218,8 @@ where
227
218
. downcast_ref :: < E :: Array > ( )
228
219
. vortex_expect ( "Failed to downcast array" ) ;
229
220
let vtable = array. vtable ( ) ;
230
- let encoding = vtable
231
- . as_any ( )
232
- . downcast_ref :: < E > ( )
233
- . vortex_expect ( "Failed to downcast encoding" ) ;
234
- SearchSortedUsizeFn :: search_sorted_usize_many ( encoding, array_ref, values, side)
221
+
222
+ SearchSortedUsizeFn :: search_sorted_usize_many ( self , array_ref, values, side)
235
223
}
236
224
}
237
225
0 commit comments