Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 4eb6705

Browse files
committed
Resolve small errors identified by recent clippy
1 parent 63d069a commit 4eb6705

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

crates/libm-test/src/precision.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use crate::{BaseName, CheckBasis, CheckCtx, Float, Identifier, Int, TestResult};
1313
pub struct SpecialCase;
1414

1515
/// ULP allowed to differ from the results returned by a test basis.
16+
#[allow(clippy::single_match)]
1617
pub fn default_ulp(ctx: &CheckCtx) -> u32 {
1718
// ULP compared to the infinite (MPFR) result.
1819
let mut ulp = match ctx.base_name {

src/math/support/env.rs

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

0 commit comments

Comments
 (0)