summaryrefslogtreecommitdiff
path: root/src/random_tables.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/random_tables.rs')
-rw-r--r--src/random_tables.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/random_tables.rs b/src/random_tables.rs
index f949554..8bc1e61 100644
--- a/src/random_tables.rs
+++ b/src/random_tables.rs
@@ -1,10 +1,10 @@
+use crate::dice;
+use include_dir::{include_dir, Dir};
use serde::Deserialize;
use serde_yaml;
use std::collections::HashMap;
use std::error::Error;
use std::string::String;
-use include_dir::{include_dir, Dir};
-use crate::dice;
#[derive(Debug, Deserialize)]
struct RandomTable {
@@ -28,7 +28,7 @@ pub struct RandomTables {
tables: HashMap<String, RandomTable>,
}
-const YAML_DIR : Dir = include_dir!("src/data/random_tables/");
+const YAML_DIR: Dir = include_dir!("src/data/random_tables/");
impl RandomTables {
pub fn new() -> Result<Self, Box<dyn Error>> {
@@ -99,7 +99,7 @@ impl RandomTables {
None
}
}
- _ => None
+ _ => None,
}
}
}