Skip to content

Commit

Permalink
Merge remote-tracking branch 'AaronFeickert/inline-warnings' into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
isislovecruft committed Jun 19, 2024
2 parents 74360d7 + 54441e7 commit 22606eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ pub trait ConstantTimeEq {
/// * `Choice(1u8)` if `self == other`;
/// * `Choice(0u8)` if `self != other`.
#[inline]
#[allow(unused_attributes)]
fn ct_eq(&self, other: &Self) -> Choice;

/// Determine if two items are NOT equal.
Expand Down Expand Up @@ -413,6 +414,7 @@ pub trait ConditionallySelectable: Copy {
/// # }
/// ```
#[inline]
#[allow(unused_attributes)]
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self;

/// Conditionally assign `other` to `self`, according to `choice`.
Expand Down Expand Up @@ -603,6 +605,7 @@ pub trait ConditionallyNegatable {
///
/// This function should execute in constant time.
#[inline]
#[allow(unused_attributes)]
fn conditional_negate(&mut self, choice: Choice);
}

Expand Down

0 comments on commit 22606eb

Please sign in to comment.