Skip to content

Commit

Permalink
clippy: Fix simple warnings.
Browse files Browse the repository at this point in the history
* Suppress some suggestions that require a higher MSRV.
* Simplify a `cfg` / `use`.
  • Loading branch information
waywardmonkeys committed Aug 12, 2023
1 parent d89ce12 commit 6550f23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
// Ratio ops often use other "suspicious" ops
#![allow(clippy::suspicious_arithmetic_impl)]
#![allow(clippy::suspicious_op_assign_impl)]
// These use stdlib features higher than the MSRV
#![allow(clippy::manual_strip)] // 1.45
#![allow(clippy::manual_range_contains)] // 1.35

#[cfg(feature = "std")]
#[macro_use]
Expand Down Expand Up @@ -1706,10 +1709,8 @@ fn hash<T: Hash>(x: &T) -> u64 {
#[cfg(test)]
mod test {
use super::ldexp;
#[cfg(all(feature = "num-bigint"))]
use super::BigInt;
#[cfg(feature = "num-bigint")]
use super::BigRational;
use super::{BigInt, BigRational};
use super::{Ratio, Rational64};

use core::f64;
Expand Down

0 comments on commit 6550f23

Please sign in to comment.