@@ -269,10 +269,8 @@ impl<T: Item + 'static> FilePicker<T> {
269269
270270 EventResult::Consumed(callback)
271271 }
272−}
273272
274−impl<T: Item + 'static> Component for FilePicker<T> {
275− fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) {
273+ fn render_picker(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) {
276274 // +---------+ +---------+
277275 // |prompt | |preview |
278276 // +---------+ | |
@@ -416,6 +414,12 @@ impl<T: Item + 'static> Component for FilePicker<T> {
416414 }
417415}
418416
417+impl<T: Item + 'static> Component for FilePicker<T> {
418+ fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) {
419+ self.render_picker(area, surface, cx);
420+ }
421+}
422+
419423#[derive(PartialEq, Eq, Debug)]
420424struct PickerMatch {
421425 score: i64,