Rollup merge of #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 76dbe2910465072f85e74d6f7115ec9e6803e8bf. Reported-by: `@noeensarguet`
This commit is contained in:
commit
0a35418d34
@ -901,7 +901,6 @@ pub trait Ord: Eq + PartialOrd<Self> {
|
||||
fn clamp(self, min: Self, max: Self) -> Self
|
||||
where
|
||||
Self: Sized,
|
||||
Self: PartialOrd,
|
||||
{
|
||||
assert!(min <= max);
|
||||
if self < min {
|
||||
|
Loading…
x
Reference in New Issue
Block a user