Cleanup
This commit is contained in:
+3
-3
@@ -181,12 +181,12 @@ impl KanaSet {
|
||||
|
||||
pub fn next(&mut self) -> (String, String) {
|
||||
let current_set = self.list();
|
||||
|
||||
|
||||
let mut rand = rand::rng();
|
||||
let index: u32 = rand.random();
|
||||
current_set[index as usize % current_set.len()].clone()
|
||||
}
|
||||
|
||||
|
||||
pub fn list(&self) -> Vec<(String, String)> {
|
||||
let mut current_set: Vec<(String, String)> = Vec::new();
|
||||
|
||||
@@ -197,7 +197,7 @@ impl KanaSet {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
current_set
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user