bellinitte / ruxnasm

Alternative Uxntal assembler focused on error reporting
MIT License
50 stars 5 forks source link

minor idiomatic change #4

Closed OliveIsAWord closed 2 years ago

OliveIsAWord commented 2 years ago

This change removes is_hex_digit and substitutes it with pattern matching, eliminating the duplicate expressions. This also removes the panic branch in the binary caused by unwrapping, a potential marginal performance benefit.

bellinitte commented 2 years ago

@OliveIsAWord looks good, thank you for your contribution!