We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff01955 commit 1975526Copy full SHA for 1975526
src/lib.rs
@@ -890,18 +890,6 @@ pub trait ConstantTimePartialOrd {
890
fn ct_partial_cmp(&self, other: &Self) -> CtOption<Ordering>;
891
}
892
893
-impl ConstantTimeEq for Ordering {
894
- /// Use our `#[repr(i8)]` to get a `ct_eq()` implementation without relying on any `match`es.
895
- ///
896
- /// This also means `CtOption<Ordering>` implements `ConstantTimeEq`.
897
- #[inline]
898
- fn ct_eq(&self, other: &Self) -> Choice {
899
- let a = *self as i8;
900
- let b = *other as i8;
901
- a.ct_eq(&b)
902
- }
903
-}
904
-
905
impl ConditionallySelectable for Ordering {
906
/// Delegate to [`i8::conditional_select()`], since [`Ordering`] is `#[repr(i8)]`.
907
#[inline]
0 commit comments