Merge pull request #4711 from cakebaker/factor_fix_unused_import_in_test

factor: fix unused import in test
This commit is contained in:
Sylvestre Ledru 2023-04-06 11:16:08 +02:00 committed by GitHub
commit 2172b0cae0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@
// spell-checker:ignore (methods) hexdigest
use crate::common::util::{AtPath, TestScenario};
use crate::common::util::TestScenario;
use std::time::{Duration, SystemTime};
@ -33,6 +33,7 @@ fn test_invalid_arg() {
#[test]
#[cfg(feature = "sort")]
fn test_parallel() {
use crate::common::util::AtPath;
use hex_literal::hex;
use sha1::{Digest, Sha1};
use std::{fs::OpenOptions, time::Duration};
@ -117,7 +118,7 @@ fn test_cli_args() {
#[test]
fn test_random() {
use conv::prelude::*;
use conv::prelude::ValueFrom;
let log_num_primes = f64::value_from(NUM_PRIMES).unwrap().log2().ceil();
let primes = Sieve::primes().take(NUM_PRIMES).collect::<Vec<u64>>();