microsoft / windows-drivers-rs

Platform that enables Windows driver development in Rust. Developed by Surface.
Apache License 2.0
1.49k stars 65 forks source link

fix: prevent unused import warning in arguments to `call_unsafe_wdf_function_binding` #207

Closed wmmc88 closed 1 month ago

wmmc88 commented 1 month ago

Fix for a bug where the wdk-sys types used in casts in arguments to the call_unsafe_wdf_function_binding macro would detected as unused imports. This was due to a glob import within the macro leaking outside of the macro.