Skip to content

Commit 760bbff

Browse files
authored
Merge pull request #27 from tcharding/12-30-default-generic
Add default generic type to `ArbitraryOrd`
2 parents 26b8b06 + 8e5f4ad commit 760bbff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ use core::ops::{Deref, DerefMut};
8282
/// }
8383
/// }
8484
/// ```
85-
pub trait ArbitraryOrd: Eq + PartialEq {
85+
pub trait ArbitraryOrd<Rhs = Self>: Eq + PartialEq<Rhs> {
8686
/// Implements a meaningless, arbitrary ordering.
87-
fn arbitrary_cmp(&self, other: &Self) -> Ordering;
87+
fn arbitrary_cmp(&self, other: &Rhs) -> Ordering;
8888
}
8989

9090
/// A wrapper type that implements `PartialOrd` and `Ord`.

0 commit comments

Comments
 (0)