failure warning for base36 parsing

This commit is contained in:
Max Bradbury 2020-04-26 13:33:53 +01:00
parent 1be81293e6
commit 3e72e242f3
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ impl AnimationFrames for Vec<Image> {
} }
fn from_base36(str: &str) -> u64 { fn from_base36(str: &str) -> u64 {
u64::from_str_radix(str, 36).unwrap() u64::from_str_radix(str, 36).expect(&format!("Invalid base36 string: {}", str))
} }
/// this doesn't work inside ToBase36 for some reason /// this doesn't work inside ToBase36 for some reason