Skip to content

Commit e65d8e8

Browse files
authored
Rollup merge of rust-lang#130481 - krtab:clamp_partial_ord, r=cuviper
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`
2 parents f3a53b7 + 46a0aa8 commit e65d8e8

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)