Skip to content

Commit 9fa3abc

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 1ead476 commit 9fa3abc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: library/core/src/cmp.rs

-1
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ pub trait Ord: Eq + PartialOrd<Self> {
874874
fn clamp(self, min: Self, max: Self) -> Self
875875
where
876876
Self: Sized,
877-
Self: PartialOrd,
878877
{
879878
assert!(min <= max);
880879
if self < min {

0 commit comments

Comments
 (0)