Don't try to handle errors when opening platform windows

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-04-12 15:14:25 -07:00
co-authored by Nathan Sobo
parent 86c0f41c9e
commit d4436f3018
6 changed files with 95 additions and 110 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ impl super::Platform for Platform {
_: usize,
options: super::WindowOptions,
_executor: Rc<super::executor::Foreground>,
) -> anyhow::Result<Box<dyn super::Window>> {
Ok(Box::new(Window::new(options.bounds.size())))
) -> Box<dyn super::Window> {
Box::new(Window::new(options.bounds.size()))
}
fn key_window_id(&self) -> Option<usize> {