core: implement fluent builder for data builders
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
use std::rc::Rc;
|
||||
use std::time::Duration;
|
||||
|
||||
use gpui::prelude::FluentBuilder as _;
|
||||
use gpui::prelude::FluentBuilder;
|
||||
use gpui::{
|
||||
Animation, AnimationExt as _, App, Context, ElementId, Entity, InteractiveElement as _,
|
||||
IntoElement, ParentElement as _, RenderOnce, Role, SharedString,
|
||||
@@ -100,6 +100,9 @@ impl Toast {
|
||||
}
|
||||
}
|
||||
|
||||
// Toast is a data builder, not an element, adopt the combinators explicitly.
|
||||
impl FluentBuilder for Toast {}
|
||||
|
||||
/// One raised toast, with its identity in the store.
|
||||
#[derive(Clone)]
|
||||
pub struct ToastEntry {
|
||||
|
||||
Reference in New Issue
Block a user