Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Checkpoint: Back to a compiling state
Marshall Bowers6dbe9834618c
diff --git a/crates/storybook2/src/stories/kitchen_sink.rs b/crates/storybook2/src/stories/kitchen_sink.rsindex 74e620fc31f..e0459098f57 100644--- a/crates/storybook2/src/stories/kitchen_sink.rs+++ b/crates/storybook2/src/stories/kitchen_sink.rs@@ -20,7 +20,7 @@ impl<S: 'static + Send + Sync + Clone> KitchenSinkStory<S> {fn render(&mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {let element_stories = ElementStory::iter().map(|selector| selector.story());- let component_stories = ComponentStory::iter().map(|selector| selector.story(cx));+ let component_stories = ComponentStory::iter().map(|selector| selector.story(cx)).collect::<Vec<_>>();Story::container(cx).overflow_y_scroll(ScrollState::default())diff --git a/crates/storybook2/src/story_selector.rs b/crates/storybook2/src/story_selector.rsindex bf169b72da2..19bd267a104 100644--- a/crates/storybook2/src/story_selector.rs+++ b/crates/storybook2/src/story_selector.rs@@ -90,7 +90,7 @@ impl ComponentStory {Self::Toast => ui::ToastStory::new().into_any(),Self::Toolbar => ui::ToolbarStory::new().into_any(),Self::TrafficLights => ui::TrafficLightsStory::new().into_any(),- Self::Workspace => ui::workspace_story(cx).into_any().into_any(),+ Self::Workspace => todo!(),}}}diff --git a/crates/storybook2/src/storybook2.rs b/crates/storybook2/src/storybook2.rsindex 1f1a8af13d4..87c94a8ef6d 100644--- a/crates/storybook2/src/storybook2.rs+++ b/crates/storybook2/src/storybook2.rs@@ -108,7 +108,7 @@ impl StoryWrapper {.flex().flex_col().size_full()- .child_any(self.selector.story())+ .child_any(self.selector.story(cx))})}}