Skip to content

Commit

Permalink
silence an unused code warning
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Aug 18, 2024
1 parent 335ac7e commit 8b34ac1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ pub fn test_hash_many_fn(
}
}

#[cfg(not(feature = "pure"))] // silence an unused code warning
type XofManyFunction = unsafe fn(
cv: &CVWords,
block: &[u8; BLOCK_LEN],
Expand All @@ -216,6 +217,7 @@ type XofManyFunction = unsafe fn(
);

// A shared helper function for platform-specific tests.
#[cfg(not(feature = "pure"))] // silence an unused code warning
pub fn test_xof_many_fn(xof_many_function: XofManyFunction) {
let mut block = [0; BLOCK_LEN];
let block_len = 42;
Expand Down

0 comments on commit 8b34ac1

Please sign in to comment.