Skip to content

Commit

Permalink
Fix clippy on non-x86_64 architectures (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgwiese committed Jun 27, 2024
1 parent 99d35a3 commit 898de40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions number/src/goldilocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize};

use core::fmt::{self, Debug, Formatter};
use core::hash::Hash;
#[cfg(target_arch = "x86_64")]
use core::hint::unreachable_unchecked;

use crate::{BigUint, FieldElement, KnownField, LargeInt};
Expand Down Expand Up @@ -283,6 +284,7 @@ const fn split(x: u128) -> (u64, u64) {
}

#[inline(always)]
#[cfg(target_arch = "x86_64")]
pub fn assume(p: bool) {
debug_assert!(p);
if !p {
Expand Down

0 comments on commit 898de40

Please sign in to comment.