moved rand imports in module to top

This commit is contained in:
winneratwin 2022-04-17 13:37:03 +01:00
parent 729bade6d5
commit 4ea9c07a46
Signed by: winneratwin
GPG Key ID: CDBC42F8803D689E

View File

@ -12,6 +12,8 @@ use threadpool::ThreadPool;
/// values with the same length so they could be easily
/// filtered out
pub mod spammer_utils {
use rand::seq::SliceRandom;
use rand::Rng;
/// struct for holding threadrng seed
/// needed to use functions
@ -31,9 +33,7 @@ pub mod spammer_utils {
pub last_name: String,
}
use rand::seq::SliceRandom;
#[allow(dead_code)]
use rand::Rng;
impl SpammerHelperFunctions {
/// generate a random credit card number