From 3e72e242f3b67efb6c866170d0be2569207c3100 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 26 Apr 2020 13:33:53 +0100 Subject: [PATCH] failure warning for base36 parsing --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fed76c9..d7baffd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,7 +71,7 @@ impl AnimationFrames for Vec { } 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