Resolve small errors identified by recent clippy
This commit is contained in:
parent
4e5cbbeda1
commit
375cb5402f
2 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue