ruplicity
ruplicity copied to clipboard
Use saturating_sub
There are a bunch of if a > b { a - b } else { 0 } occurrences. This could be easily solved by using a.saturating_sub(b) if the variables are unsigned.