Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3280db4 Remove Eq trait bound (Tobin C. Harding) Pull request description: The `PartialOrd` trait is object safe but `Ord` is not. We can make `ArbitraryOrd` object safe by softening the bounds and only requiring `PartialEq` - we still provide a blanket implementation of `Ord` if `Eq` is implemented for `T`. Add a unit test that verifies using `Box<dyn T>` - props to Poelstra for the idea. ACKs for top commit: apoelstra: ACK 3280db4; successfully ran local tests; nice! Yeah, we never would have gotten this right by hand Tree-SHA512: 865b2f2b8689d843b0771924552819e4d0e60ea53a3affcaa68c66bdeccb1cb9708073ee8baa25d641c4af647a2c1017a7791508f3b826f414ba411ccc58e1c7
- Loading branch information