File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
crates/lambda-rs-platform/src/wgpu Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments