1 parent e38df4a commit 964d58cCopy full SHA for 964d58c
1 file changed
crates/lambda-rs-platform/src/wgpu/mod.rs
@@ -510,10 +510,11 @@ mod tests {
510
511
#[test]
512
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
- ));
+ // RequestDeviceError is opaque in wgpu 26 (no public constructors or variants).
+ // This test previously validated pattern matching on a specific variant; now we
+ // simply assert the From<wgpu::RequestDeviceError> implementation exists by
+ // checking the trait bound at compile time.
+ fn assert_from_impl<T: From<wgpu::RequestDeviceError>>() {}
518
+ assert_from_impl::<GpuBuildError>();
519
}
520
0 commit comments