Skip to content

Commit

Permalink
Merge pull request #27 from tcharding/12-30-default-generic
Browse files Browse the repository at this point in the history
Add default generic type to `ArbitraryOrd`
  • Loading branch information
tcharding authored Dec 29, 2024
2 parents 26b8b06 + 8e5f4ad commit 760bbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ use core::ops::{Deref, DerefMut};
/// }
/// }
/// ```
pub trait ArbitraryOrd: Eq + PartialEq {
pub trait ArbitraryOrd<Rhs = Self>: Eq + PartialEq<Rhs> {
/// Implements a meaningless, arbitrary ordering.
fn arbitrary_cmp(&self, other: &Self) -> Ordering;
fn arbitrary_cmp(&self, other: &Rhs) -> Ordering;
}

/// A wrapper type that implements `PartialOrd` and `Ord`.
Expand Down

0 comments on commit 760bbff

Please sign in to comment.