Skip to content

Commit 964d58c

Browse files
committed
[fix] broken tests.
1 parent e38df4a commit 964d58c

File tree

1 file changed

+6
-5
lines changed
  • crates/lambda-rs-platform/src/wgpu

1 file changed

+6
-5
lines changed

crates/lambda-rs-platform/src/wgpu/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,11 @@ mod tests {
510510

511511
#[test]
512512
fn gpu_build_error_wraps_request_device_error() {
513-
let error = GpuBuildError::from(wgpu::RequestDeviceError::NotFound);
514-
assert!(matches!(
515-
error,
516-
GpuBuildError::RequestDevice(wgpu::RequestDeviceError::NotFound)
517-
));
513+
// RequestDeviceError is opaque in wgpu 26 (no public constructors or variants).
514+
// This test previously validated pattern matching on a specific variant; now we
515+
// simply assert the From<wgpu::RequestDeviceError> implementation exists by
516+
// checking the trait bound at compile time.
517+
fn assert_from_impl<T: From<wgpu::RequestDeviceError>>() {}
518+
assert_from_impl::<GpuBuildError>();
518519
}
519520
}

0 commit comments

Comments
 (0)