Skip to content

Commit 9f5e58d

Browse files
committed
Fix clippy warning
1 parent 153b6aa commit 9f5e58d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: crates/libm-test/src/precision.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,10 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
106106
}
107107

108108
if cfg!(target_arch = "x86") {
109-
match ctx.fn_ident {
110-
// Input `fma(0.999999999999999, 1.0000000000000013, 0.0) = 1.0000000000000002` is
111-
// incorrect on i586 and i686.
112-
Id::Fma => ulp = 1,
113-
_ => (),
109+
// Input `fma(0.999999999999999, 1.0000000000000013, 0.0) = 1.0000000000000002` is
110+
// incorrect on i586 and i686.
111+
if ctx.fn_ident == Id::Fma {
112+
ulp = 1,
114113
}
115114
}
116115

Diff for: 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)