1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #4712 from cakebaker/factor_remove_extern_crate

factor: remove unnecessary "extern crate" in test
This commit is contained in:
Sylvestre Ledru 2023-04-07 09:46:46 +02:00 committed by GitHub
commit da15928d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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};