You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constEXPECT_MESSAGE:&str = "is_hex has failed us";
311
304
// Get the individual chars from the hex then convert from hex -> decimal
312
305
match hex_size {
313
306
// if each hex char is only 1 char long
314
307
1 => {
315
308
hex_value
316
309
.chars()
317
310
.skip(LINES_TO_SKIP)// Skip the # at the front
318
-
.map(|char| i32::from_str_radix(char.to_string().as_str(),HEX_RADIX).expect(EXPECT_MESSAGE))// Can parse with an unwrap because is_hex made sure it's digits
0 commit comments