Skip to content

Commit d1bfee2

Browse files
committed
Replace custom LOG2_10 with value from f64::consts
1 parent 8df20c6 commit d1bfee2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ use num_bigint::{BigInt, ParseBigIntError, Sign};
7777
use num_integer::Integer as IntegerTrait;
7878
pub use num_traits::{FromPrimitive, Num, One, Signed, ToPrimitive, Zero};
7979

80-
#[allow(clippy::approx_constant)] // requires Rust 1.43.0
81-
const LOG2_10: f64 = 3.321928094887362_f64;
80+
use stdlib::f64::consts::LOG2_10;
8281

8382

8483
// const DEFAULT_PRECISION: u64 = ${RUST_BIGDECIMAL_DEFAULT_PRECISION} or 100;

0 commit comments

Comments
 (0)