Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

factor: remove unnecessary "extern crate" in test #4712

Merged
merged 1 commit into from
Apr 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions tests/by-util/test_factor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ use std::time::{Duration, SystemTime};
#[path = "../../src/uu/factor/sieve.rs"]
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 rand::distributions::{Distribution, Uniform};
use rand::{rngs::SmallRng, Rng, SeedableRng};

const NUM_PRIMES: usize = 10000;
const NUM_TESTS: usize = 100;
Expand Down Expand Up @@ -81,7 +78,6 @@ fn test_parallel() {

#[test]
fn test_first_1000_integers() {
extern crate sha1;
use hex_literal::hex;
use sha1::{Digest, Sha1};

Expand Down