Closed DCNick3 closed 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.
BinWrite
BinRead
PhantomData<T>
T: BinWrite
PhantomData
T
This PR removes unnecessary trait bound
Currently
BinWrite
(but notBinRead
) impl forPhantomData<T>
requires thatT: BinWrite
. This is unnecessary, asPhantomData
doesn't actually storeT
and nothing is written.This PR removes unnecessary trait bound