Closed
Description
When writing non-panicking code, it is impossible to use the "{:X}"
format specifier as the impl core::fmt::UpperHex for usize
and similar code might panic. It seems that it is because the GenericRadix::fmt_int method is using slice indexing notation here:
let buf = &buf[curr..];
This seem to be easily avoidable by replacing it with buf.get(curr..)
and some error handling.