This commit is contained in:
Nathan Sobo 2023-04-12 12:10:43 -06:00
parent 40896352ff
commit a25f962185
90 changed files with 587 additions and 501 deletions

View file

@ -19,8 +19,8 @@ use crate::{
platform,
platform::Platform,
util::CwdBacktrace,
AppContext, Element, ElementBox, Entity, FontCache, Handle, Subscription, TestAppContext, View,
ViewContext,
AppContext, Drawable, Element, Entity, FontCache, Handle, Subscription, TestAppContext,
View, ViewContext,
};
#[cfg(test)]
@ -240,7 +240,7 @@ impl View for EmptyView {
"empty view"
}
fn render(&mut self, _: &mut ViewContext<Self>) -> ElementBox<Self> {
Element::boxed(Empty::new())
fn render(&mut self, _: &mut ViewContext<Self>) -> Element<Self> {
Drawable::boxed(Empty::new())
}
}