Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add details to InstanceError and CreateSurfaceError. #4066

Merged
merged 7 commits into from
Sep 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ignore false positive redundant_clone from Clippy
  • Loading branch information
kpreid committed Aug 22, 2023
commit eebd9b67d5b2638a121b9f5a9bd04a1744c016fe
1 change: 1 addition & 0 deletions tests/tests/create_surface_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fn canvas_get_context_returned_null() {
// Using a context id that is not "webgl2" or "webgpu" will render the canvas unusable by wgpu.
canvas_g.canvas.get_context("2d").unwrap();

#[allow(clippy::redundant_clone)] // false positive — can't and shouldn't move out.
let error = instance
.create_surface_from_canvas(canvas_g.canvas.clone())
.unwrap_err();
Expand Down