mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
* Ensure device lost closure is called exactly once before being dropped. This requires a change to the Rust callback signature, which is now Fn instead of FnOnce. When the Rust callback or the C closure are dropped, they will panic if they haven't been called. `device_drop` is changed to call the closure with a message of "Device dropped." A test is added.