diff options
author | David Gay <eapoems@riseup.net> | 2023-10-02 03:45:42 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2023-10-02 03:45:42 -0400 |
commit | 75ed579cf1bb83ddd206a8bee4dec864680edb81 (patch) | |
tree | 966aecb77549b9f45245f6a32d5317b107285c90 /src/random_tables.rs | |
parent | 9454f88c23a55fb982d11ada496f53f9579cf66d (diff) |
cargo fmt
Diffstat (limited to 'src/random_tables.rs')
-rw-r--r-- | src/random_tables.rs | 8 |
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, } } } |