diff --git a/src/f128/math/ops.cairo b/src/f128/math/ops.cairo index 42a4b1e..fd39913 100644 --- a/src/f128/math/ops.cairo +++ b/src/f128/math/ops.cairo @@ -226,7 +226,7 @@ fn neg(a: Fixed) -> Fixed { // self is a fixed point value // b is a fixed point value fn pow(a: Fixed, b: Fixed) -> Fixed { - let (div_u128, rem_u128) = _split_unsigned(b); + let (_div_u128, rem_u128) = _split_unsigned(b); // use the more performant integer pow when y is an int if (rem_u128 == 0) { @@ -346,7 +346,7 @@ mod tests { #[should_panic] fn test_negative_try_into_u128() { let a = FixedTrait::new_unscaled(1, true); - let a: u128 = a.try_into().unwrap(); + let _a: u128 = a.try_into().unwrap(); } #[test] diff --git a/src/f128/types/fixed.cairo b/src/f128/types/fixed.cairo index 92e3f21..b574f1c 100644 --- a/src/f128/types/fixed.cairo +++ b/src/f128/types/fixed.cairo @@ -1039,7 +1039,7 @@ mod tests { #[should_panic] fn test_try_into_fail() { let mut a = FixedTrait::new_unscaled(42, true); - let b: u128 = a.try_into().unwrap(); + let _b: u128 = a.try_into().unwrap(); } #[test] @@ -1053,7 +1053,7 @@ mod tests { #[should_panic] fn test_try_into_f64_fail() { let a = FixedTrait::new_unscaled(ONE_u64.into(), true); - let b: Fixed64 = a.try_into().unwrap(); + let _b: Fixed64 = a.try_into().unwrap(); } #[available_gas(10000000)] diff --git a/src/f64/math/ops.cairo b/src/f64/math/ops.cairo index d6f8364..48dce5d 100644 --- a/src/f64/math/ops.cairo +++ b/src/f64/math/ops.cairo @@ -206,7 +206,7 @@ fn neg(a: Fixed) -> Fixed { // self is a Fixed point value // b is a Fixed point value fn pow(a: Fixed, b: Fixed) -> Fixed { - let (div, rem) = core::integer::u64_safe_divmod(b.mag, u64_as_non_zero(ONE)); + let (_div, rem) = core::integer::u64_safe_divmod(b.mag, u64_as_non_zero(ONE)); // use the more performant integer pow when y is an int if (rem == 0) { @@ -317,7 +317,7 @@ mod tests { #[should_panic] fn test_negative_try_into_u128() { let a = FixedTrait::new_unscaled(1, true); - let a: u128 = a.try_into().unwrap(); + let _a: u128 = a.try_into().unwrap(); } #[test]