Skip to content

Commit defe0a0

Browse files
committed
Fix small bug in reverting dalek-cryptography#107
1 parent 369e746 commit defe0a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ impl Not for Choice {
220220
/// code may break in a non-destructive way in the future, “constant-time” code
221221
/// is a continually moving target, and this is better than doing nothing.
222222
#[inline(never)]
223+
#[cfg(not(feature = "core_hint_black_box"))]
223224
fn black_box<T: Copy>(input: T) -> T {
224225
unsafe {
225226
// Optimization barrier

0 commit comments

Comments
 (0)