whisperfish / rust-phonenumber

Library for parsing, formatting and validating international phone numbers.
Apache License 2.0
162 stars 55 forks source link

Propagate error through Result from Country::id(&self) #56

Open rubdos opened 1 year ago

rubdos commented 1 year ago

Whereas https://github.com/whisperfish/rust-phonenumber/pull/54 avoids a panic when the country id is unparsable, it would be better to propagate this error to the caller. This is a breaking change, and we currently don't want to break the main branch.