jhpratt / deranged

Proof of concept ranged integers in Rust.
Apache License 2.0
38 stars 5 forks source link

Fixed the bug of `TryFrom` #4

Closed TonalidadeHidrica closed 2 years ago

TonalidadeHidrica commented 2 years ago

In the original implementation, try_from recursed to the function of try_from itself. I fixed the bug and added some tests.

jhpratt commented 2 years ago

LGTM.