Return impl IntoElement from Render::render trait
This commit is contained in:
parent
0f33775a91
commit
1b5c8b2b4a
84 changed files with 550 additions and 110 deletions
|
@ -118,7 +118,7 @@ impl ProjectSharedNotification {
|
|||
}
|
||||
|
||||
impl Render for ProjectSharedNotification {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
// TODO: Is there a better place for us to initialize the font?
|
||||
let (ui_font, ui_font_size) = {
|
||||
let theme_settings = ThemeSettings::get_global(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue