Remove unused import
This commit is contained in:
+2
-4
@@ -1,5 +1,3 @@
|
|||||||
use rand::RngExt;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct KanaSet {
|
pub struct KanaSet {
|
||||||
name: String,
|
name: String,
|
||||||
@@ -179,13 +177,13 @@ impl KanaSet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn next(&mut self) -> (String, String) {
|
/* pub fn next(&mut self) -> (String, String) {
|
||||||
let current_set = self.list();
|
let current_set = self.list();
|
||||||
|
|
||||||
let mut rand = rand::rng();
|
let mut rand = rand::rng();
|
||||||
let index: u32 = rand.random();
|
let index: u32 = rand.random();
|
||||||
current_set[index as usize % current_set.len()].clone()
|
current_set[index as usize % current_set.len()].clone()
|
||||||
}
|
}*/
|
||||||
|
|
||||||
pub fn list(&self) -> Vec<(String, String)> {
|
pub fn list(&self) -> Vec<(String, String)> {
|
||||||
let mut current_set: Vec<(String, String)> = Vec::new();
|
let mut current_set: Vec<(String, String)> = Vec::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user