Fix compile errors
This commit is contained in:
parent
65cd4f5838
commit
5ee6814947
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ pub fn derive_element(input: TokenStream) -> TokenStream {
|
||||||
|
|
||||||
fn paint(
|
fn paint(
|
||||||
&mut self,
|
&mut self,
|
||||||
layout: gpui3::Layout,
|
bounds: gpui3::Bounds<gpui3::Pixels>,
|
||||||
state: &mut Self::State,
|
state: &mut Self::State,
|
||||||
rendered_element: &mut Self::FrameState,
|
rendered_element: &mut Self::FrameState,
|
||||||
cx: &mut gpui3::ViewContext<Self::State>,
|
cx: &mut gpui3::ViewContext<Self::State>,
|
||||||
|
|
|
@ -61,7 +61,7 @@ fn main() {
|
||||||
WindowOptions {
|
WindowOptions {
|
||||||
bounds: WindowBounds::Fixed(Bounds {
|
bounds: WindowBounds::Fixed(Bounds {
|
||||||
origin: Default::default(),
|
origin: Default::default(),
|
||||||
size: size(px(800.), px(600.)),
|
size: size(px(800.), px(600.)).into(),
|
||||||
}),
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
|
@ -78,7 +78,7 @@ fn main() {
|
||||||
WindowOptions {
|
WindowOptions {
|
||||||
bounds: WindowBounds::Fixed(Bounds {
|
bounds: WindowBounds::Fixed(Bounds {
|
||||||
origin: Default::default(),
|
origin: Default::default(),
|
||||||
size: size(px(800.), px(600.)),
|
size: size(px(800.), px(600.)).into(),
|
||||||
}),
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue