mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
factor: remove unnecessary "extern crate" in test
This commit is contained in:
parent
2172b0cae0
commit
305087f8e2
1 changed files with 2 additions and 6 deletions
|
@ -15,12 +15,9 @@ use std::time::{Duration, SystemTime};
|
||||||
#[path = "../../src/uu/factor/sieve.rs"]
|
#[path = "../../src/uu/factor/sieve.rs"]
|
||||||
mod sieve;
|
mod sieve;
|
||||||
|
|
||||||
extern crate conv;
|
|
||||||
extern crate rand;
|
|
||||||
|
|
||||||
use self::rand::distributions::{Distribution, Uniform};
|
|
||||||
use self::rand::{rngs::SmallRng, Rng, SeedableRng};
|
|
||||||
use self::sieve::Sieve;
|
use self::sieve::Sieve;
|
||||||
|
use rand::distributions::{Distribution, Uniform};
|
||||||
|
use rand::{rngs::SmallRng, Rng, SeedableRng};
|
||||||
|
|
||||||
const NUM_PRIMES: usize = 10000;
|
const NUM_PRIMES: usize = 10000;
|
||||||
const NUM_TESTS: usize = 100;
|
const NUM_TESTS: usize = 100;
|
||||||
|
@ -81,7 +78,6 @@ fn test_parallel() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_first_1000_integers() {
|
fn test_first_1000_integers() {
|
||||||
extern crate sha1;
|
|
||||||
use hex_literal::hex;
|
use hex_literal::hex;
|
||||||
use sha1::{Digest, Sha1};
|
use sha1::{Digest, Sha1};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue