microsoft / windows-rs

Rust for Windows
https://kennykerr.ca/rust-getting-started/
Apache License 2.0
10.23k stars 476 forks source link

Derive standard traits for structs #3041

Closed kennykerr closed 3 months ago

kennykerr commented 3 months ago

Continuing on from #3015, this further derives the standard traits for structs where possible to reduce lines of code and improve readability.

kennykerr commented 3 months ago

Looks like deriving Debug for function pointers is new in Rust 1.70 so that'll be the new MSRV for the windows crate.