We have an sdf_parse_number function that sanely handles an error, but a bunch of the code only does:
let id = checked_lookup(xml_sdf, &child, "id")?
.parse::<i64>()
.unwrap();
Which does:
thread 'main' (2402178) panicked at tool/microkit/src/sdf.rs:973:30:
called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit
Which looks ugly.
We have an
sdf_parse_numberfunction that sanely handles an error, but a bunch of the code only does:Which does:
Which looks ugly.