We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
integration_wgpu
1 parent 9410fb9 commit db4b899Copy full SHA for db4b899
1 file changed
examples/integration_wgpu/src/main.rs
@@ -33,7 +33,8 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
33
web_sys::window()
34
.and_then(|win| win.document())
35
.and_then(|doc| doc.get_element_by_id("iced_canvas"))
36
- .and_then(|element| element.dyn_into::<HtmlCanvasElement>().ok())?
+ .and_then(|element| element.dyn_into::<HtmlCanvasElement>().ok())
37
+ .expect("Canvas with id `iced_canvas` is missing")
38
};
39
#[cfg(not(target_arch = "wasm32"))]
40
env_logger::init();
0 commit comments