Skip to content

Commit 22606eb

Browse files
committed
Merge remote-tracking branch 'AaronFeickert/inline-warnings' into develop
2 parents 74360d7 + 54441e7 commit 22606eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ pub trait ConstantTimeEq {
267267
/// * `Choice(1u8)` if `self == other`;
268268
/// * `Choice(0u8)` if `self != other`.
269269
#[inline]
270+
#[allow(unused_attributes)]
270271
fn ct_eq(&self, other: &Self) -> Choice;
271272

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

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

0 commit comments

Comments
 (0)