core: implement fluent builder for data builders
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::rc::Rc;
|
||||
|
||||
use gpui::prelude::FluentBuilder as _;
|
||||
use gpui::prelude::FluentBuilder;
|
||||
use gpui::{
|
||||
AnyElement, App, ElementId, FocusHandle, InteractiveElement as _, IntoElement, KeyDownEvent,
|
||||
ParentElement as _, RenderOnce, Role, SharedString, StatefulInteractiveElement as _,
|
||||
@@ -65,6 +65,9 @@ impl ListItem {
|
||||
}
|
||||
}
|
||||
|
||||
// ListItem is a data builder, not an element, adopt the combinators explicitly.
|
||||
impl FluentBuilder for ListItem {}
|
||||
|
||||
/// A single-selection list.
|
||||
#[derive(IntoElement)]
|
||||
#[must_use]
|
||||
|
||||
Reference in New Issue
Block a user