Resolve errors

Nate Butler and Marshall Bowers created

Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>

Change summary

crates/command_palette2/src/command_palette.rs | 9 ++++++---
crates/picker2/src/picker2.rs                  | 2 +-
crates/storybook2/src/stories/picker.rs        | 4 ++++
3 files changed, 11 insertions(+), 4 deletions(-)

Detailed changes

crates/command_palette2/src/command_palette.rs 🔗

@@ -2,11 +2,14 @@ use collections::{CommandPaletteFilter, HashMap};
 use fuzzy::{StringMatch, StringMatchCandidate};
 use gpui::{
     actions, div, Action, AppContext, Component, Div, EventEmitter, FocusHandle, Keystroke,
-    ParentElement, Render, SharedString, StatelessInteractive, Styled, View, ViewContext,
-    VisualContext, WeakView, WindowContext,
+    ParentElement, Render, StatelessInteractive, Styled, View, ViewContext, VisualContext,
+    WeakView, WindowContext,
 };
 use picker::{Picker, PickerDelegate};
-use std::cmp::{self, Reverse};
+use std::{
+    cmp::{self, Reverse},
+    sync::Arc,
+};
 use theme::ActiveTheme;
 use ui::{v_stack, HighlightedLabel, StyledExt};
 use util::{

crates/picker2/src/picker2.rs 🔗

@@ -4,7 +4,7 @@ use gpui::{
     StatelessInteractive, Styled, Task, UniformListScrollHandle, View, ViewContext, VisualContext,
     WindowContext,
 };
-use std::cmp;
+use std::{cmp, sync::Arc};
 use ui::{prelude::*, v_stack, Divider, Label, LabelColor};
 
 pub struct Picker<D: PickerDelegate> {

crates/storybook2/src/stories/picker.rs 🔗

@@ -44,6 +44,10 @@ impl PickerDelegate for Delegate {
         self.candidates.len()
     }
 
+    fn placeholder_text(&self) -> Arc<str> {
+        "Test".into()
+    }
+
     fn render_match(
         &self,
         ix: usize,