Resolve small errors identified by recent clippy

This commit is contained in:
Trevor Gross 2025-04-09 02:22:15 +00:00 committed by Trevor Gross
parent 4e5cbbeda1
commit 375cb5402f
2 changed files with 1 additions and 1 deletions

View file

@ -13,6 +13,7 @@ use crate::{BaseName, CheckBasis, CheckCtx, Float, Identifier, Int, TestResult};
pub struct SpecialCase;
/// ULP allowed to differ from the results returned by a test basis.
#[allow(clippy::single_match)]
pub fn default_ulp(ctx: &CheckCtx) -> u32 {
// ULP compared to the infinite (MPFR) result.
let mut ulp = match ctx.base_name {

View file

@ -70,7 +70,6 @@ impl Status {
/// The default result for division is +/-inf based on operand sign. For `logB`, the default
/// result is -inf.
/// `x / y` when `x != 0.0` and `y == 0.0`,
#[cfg_attr(not(feature = "unstable-public-internals"), allow(dead_code))]
pub const DIVIDE_BY_ZERO: Self = Self(1 << 2);