Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Move `GraphicSlot` out of `components` module (#3444)
Marshall Bowersd8ed7c072192
diff --git a/crates/ui2/src/components.rs b/crates/ui2/src/components.rsindex 0f46e3a3785..c5d06bf0dd1 100644--- a/crates/ui2/src/components.rs+++ b/crates/ui2/src/components.rs@@ -11,7 +11,6 @@ mod keybinding;mod label;mod list;mod popover;-mod slot;mod stack;mod tooltip;@@ -31,7 +30,6 @@ pub use keybinding::*;pub use label::*;pub use list::*;pub use popover::*;-pub use slot::*;pub use stack::*;pub use tooltip::*;diff --git a/crates/ui2/src/components/slot.rs b/crates/ui2/src/slot.rssimilarity index 89%rename from crates/ui2/src/components/slot.rsrename to crates/ui2/src/slot.rsindex 7c896bf85b2..3438e346217 100644--- a/crates/ui2/src/components/slot.rs+++ b/crates/ui2/src/slot.rs@@ -2,11 +2,9 @@ use gpui::{ImageSource, SharedString};use crate::Icon;-#[derive(Debug, Clone)]/// A slot utility that provides a way to to pass either/// an icon or an image to a component.-///-/// Can be filled with a []+#[derive(Debug, Clone)]pub enum GraphicSlot {Icon(Icon),Avatar(ImageSource),diff --git a/crates/ui2/src/ui2.rs b/crates/ui2/src/ui2.rsindex 997abe4bd6b..d1da22149c3 100644--- a/crates/ui2/src/ui2.rs+++ b/crates/ui2/src/ui2.rs@@ -18,6 +18,7 @@ mod disableable;mod fixed;pub mod prelude;mod selectable;+mod slot;mod styled_ext;mod styles;mod toggleable;@@ -29,6 +30,7 @@ pub use disableable::*;pub use fixed::*;pub use prelude::*;pub use selectable::*;+pub use slot::*;pub use styled_ext::*;pub use styles::*;pub use toggleable::*;