jam1garner / binrw

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

Remove unnecessary bounds from BinWrite for PhantomData impl #230

Closed DCNick3 closed 11 months ago

DCNick3 commented 11 months 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