Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ognevny committed Oct 18, 2024
1 parent 016286d commit 1c1ee45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/algorithm/extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use core::cmp::Ordering;
extern crate alloc;
#[cfg(feature = "std")] use rayon::prelude::*;
use {
alloc::{borrow::ToOwned, string::ToString, vec::Vec},
alloc::{borrow::ToOwned as _, string::ToString as _, vec::Vec},
regex::Regex,
};

Expand Down
4 changes: 2 additions & 2 deletions src/algorithm/prime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#[cfg(feature = "std")] use rayon::prelude::*;

use {
crate::num::power::modpow, fastrand::Rng, integer_sqrt::IntegerSquareRoot, num_bigint::BigUint,
snafu::Snafu,
crate::num::power::modpow, fastrand::Rng, integer_sqrt::IntegerSquareRoot as _,
num_bigint::BigUint, snafu::Snafu,
};

/// If number is less than 2, we can't say that number is either prime or composite.
Expand Down
6 changes: 3 additions & 3 deletions src/num/radix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
extern crate alloc;

use {
super::methods::Num,
super::methods::Num as _,
alloc::{
borrow::ToOwned,
string::{String, ToString},
borrow::ToOwned as _,
string::{String, ToString as _},
},
core::{cmp::Ordering, num::ParseIntError, ops, str::FromStr},
snafu::Snafu,
Expand Down

0 comments on commit 1c1ee45

Please sign in to comment.