Skip to content

Commit 94aa995

Browse files
committed
remove unhelpful expects
1 parent 9445d9a commit 94aa995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_render/src/view/window/screenshot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ impl ScreenshotManager {
9393
});
9494
let blob = web_sys::Blob::new_with_u8_array_sequence(&parts)?;
9595
let url = web_sys::Url::create_object_url_with_blob(&blob)?;
96-
let window = web_sys::window().expect("unable to get window");
97-
let document = window.document().expect("unable to get document");
96+
let window = web_sys::window().unwrap();
97+
let document = window.document().unwrap();
9898
let link = document.create_element("a")?;
9999
link.set_attribute("href", &url)?;
100100
link.set_attribute(

0 commit comments

Comments
 (0)