summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index b63d799..f9fb6bd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,14 +22,14 @@ fn main() {
let magic = random_tables.roll_table("ua_magic");
println!("{}", magic);
}
- _ => unreachable!()
+ _ => unreachable!(),
}
}
Some(("roll", sub_matches)) => {
let formula = sub_matches.get_one::<String>("FORMULA").expect("required");
match dice::roll_formula(formula) {
Some(roll_result) => println!("Rolled: {}", roll_result),
- None => eprintln!("Error: Invalid roll formula or calculation failed.")
+ None => eprintln!("Error: Invalid roll formula or calculation failed."),
}
}
Some(("table", sub_matches)) => {
@@ -37,6 +37,6 @@ fn main() {
let output_text = random_tables.roll_table(table_name);
println!("{}", output_text)
}
- _ => unreachable!()
+ _ => unreachable!(),
}
}