Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix compile errors

Marshall Bowers5ee6814947ed
diff --git a/crates/gpui3_macros/src/derive_element.rs b/crates/gpui3_macros/src/derive_element.rs
index e0fdeb4b507..08f50a92ba1 100644
--- a/crates/gpui3_macros/src/derive_element.rs
+++ b/crates/gpui3_macros/src/derive_element.rs
@@ -38,7 +38,7 @@ pub fn derive_element(input: TokenStream) -> TokenStream {
fn paint(
&mut self,
- layout: gpui3::Layout,
+ bounds: gpui3::Bounds<gpui3::Pixels>,
state: &mut Self::State,
rendered_element: &mut Self::FrameState,
cx: &mut gpui3::ViewContext<Self::State>,
diff --git a/crates/storybook2/src/storybook2.rs b/crates/storybook2/src/storybook2.rs
index de481033665..b10998ae37d 100644
--- a/crates/storybook2/src/storybook2.rs
+++ b/crates/storybook2/src/storybook2.rs
@@ -61,7 +61,7 @@ fn main() {
WindowOptions {
bounds: WindowBounds::Fixed(Bounds {
origin: Default::default(),
- size: size(px(800.), px(600.)),
+ size: size(px(800.), px(600.)).into(),
}),
..Default::default()
},
@@ -78,7 +78,7 @@ fn main() {
WindowOptions {
bounds: WindowBounds::Fixed(Bounds {
origin: Default::default(),
- size: size(px(800.), px(600.)),
+ size: size(px(800.), px(600.)).into(),
}),
..Default::default()
},