moved rand imports in module to top
This commit is contained in:
parent
729bade6d5
commit
4ea9c07a46
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user