Skip to content

Commit

Permalink
Add a comment about dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 28, 2021
1 parent 5ddd8dd commit 38b24f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/memmem/prefilter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,11 @@ pub(crate) fn forward(
}
#[cfg(all(not(miri), target_arch = "wasm32", memchr_runtime_simd))]
{
// SAFETY: `wasm::find` is actually a safe function
//
// Also note that the `if true` is here to prevent, on wasm with simd,
// rustc warning about the code below being dead code.
if true {
// SAFETY: `wasm::find` is actually a safe function
return unsafe { Some(PrefilterFn::new(wasm::find)) };
}
}
Expand Down

0 comments on commit 38b24f1

Please sign in to comment.