Skip to content

Commit 46a0aa8

Browse files
committed
Remove uneeded PartialOrd bound in cmp::Ord::clamp
There is a Self: PartialOrd bound in Ord::clamp, but it is already required by the trait itself. Likely a left-over from the const trait deletion in 76dbe29. Reported-by: @noeensarguet
1 parent 8a5922f commit 46a0aa8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/src/cmp.rs

-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,6 @@ pub trait Ord: Eq + PartialOrd<Self> {
901901
fn clamp(self, min: Self, max: Self) -> Self
902902
where
903903
Self: Sized,
904-
Self: PartialOrd,
905904
{
906905
assert!(min <= max);
907906
if self < min {

0 commit comments

Comments
 (0)