Skip to content

Commit

Permalink
Merge pull request #26 from dalek-cryptography/fixups
Browse files Browse the repository at this point in the history
Fixups
  • Loading branch information
hdevalence committed Aug 27, 2018
2 parents 16f5dbd + 8c33dfd commit d9eeda6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ without violating the orphan rules.

## Documentation

Documentation is available [here](docs).
Documentation is available [here][docs].

## About

Expand Down
11 changes: 9 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ impl Not for Choice {
/// than its type.
///
/// Uses inline asm when available, otherwise it's a no-op.
#[cfg(all(feature = "nightly", not(any(target_arch = "asmjs", target_arch = "wasm32"))))]
#[cfg(all(
feature = "nightly",
not(any(target_arch = "asmjs", target_arch = "wasm32"))
))]
fn black_box(input: u8) -> u8 {
debug_assert!(input == 0u8 || input == 1u8);

Expand All @@ -110,7 +113,11 @@ fn black_box(input: u8) -> u8 {

input
}
#[cfg(any(target_arch = "asmjs", target_arch = "wasm32", not(feature = "nightly")))]
#[cfg(any(
target_arch = "asmjs",
target_arch = "wasm32",
not(feature = "nightly")
))]
#[inline(never)]
fn black_box(input: u8) -> u8 {
debug_assert!(input == 0u8 || input == 1u8);
Expand Down

0 comments on commit d9eeda6

Please sign in to comment.