fix: parsing a card now returns an option
authorMA Beaudet <ma@beaudet.xyz>
Fri, 5 Nov 2021 14:33:12 +0000 (15:33 +0100)
committerMA Beaudet <ma@beaudet.xyz>
Fri, 5 Nov 2021 14:33:12 +0000 (15:33 +0100)
commit9d2f737b5e29a54aa6a27503bc7ac0dc254c07bc
treea4ec7dff6696faf4a72ac08009edf261a37af75b
parent200b85fcde4f274bd67969518f50269beca28604
fix: parsing a card now returns an option

`card_from_str` is renamed to `parse_card` and now returns an
`Option<u32>` instead of a `u32`. The function does not panic anymore.
src/lib.rs