Skip to content

Commit

Permalink
Fix is_aarch64_feature_detected usage (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy authored Feb 8, 2022
1 parent 9c04b50 commit ddfc461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/specialized/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub struct State {

impl State {
pub fn new(state: u32) -> Option<Self> {
if is_aarch64_feature_detected!("crc") {
if std::arch::is_aarch64_feature_detected!("crc") {
// SAFETY: The conditions above ensure that all
// required instructions are supported by the CPU.
Some(Self { state })
Expand Down

0 comments on commit ddfc461

Please sign in to comment.