recmo / uint

Rust Uint crate using const-generics
MIT License
171 stars 40 forks source link

Empty string gets parsed as 0 #348

Open DaniPopes opened 10 months ago

DaniPopes commented 10 months ago

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

prestwich commented 8 months ago

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?