jam1garner / binrw

A Rust crate for helping parse and rebuild binary data using ✨macro magic✨.
https://binrw.rs
MIT License
627 stars 37 forks source link

Remove unnecessary bounds from BinWrite for PhantomData impl #230

Closed DCNick3 closed 1 year ago

DCNick3 commented 1 year ago

Currently BinWrite (but not BinRead) impl for PhantomData<T> requires that T: BinWrite. This is unnecessary, as PhantomData doesn't actually store T and nothing is written.

This PR removes unnecessary trait bound