uint icon indicating copy to clipboard operation
uint copied to clipboard

Empty string gets parsed as 0

Open DaniPopes opened this issue 1 year ago • 1 comments

Uint::<_, _>::from_str("") always parses successfully as 0.

DaniPopes avatar Jan 05 '24 17:01 DaniPopes

this appears to be @recmo 's intended behavior, as there is the parser uses from_base_be and there is no BaseConverError::NoDigits. We could add one in 2.0.0 if we feel there's a compelling reason?

prestwich avatar Feb 27 '24 22:02 prestwich