ruabmbua / hidapi-rs

Rust bindings for the hidapi C library
MIT License
165 stars 79 forks source link

Implement Debug for HidDevice #118

Closed marienz closed 1 year ago

marienz commented 1 year ago

HidDevice previously implemented Debug (see ed7bc23ea9d47e1f98e9394e3c478580a68df215), but the copy of the public API added in 7439af69b91164a70b3d1b54a6f5c6d54ebe7749 did not. This restores that functionality.

This just prints HidDevice { .. }, but that is still useful as it makes it easy for wrapping types to implement Debug (it makes derive(Debug) on structs containing a HidDevice work).

ruabmbua commented 1 year ago

Thx, that was an oversight when we refactored some of the code.