This PR shores up the last of the default cargo clippy warnings.
To be frank, it goes one commit further by changing some conversions into safe conversions that are arguably easier to read and more idiomatic (this part would be subjective and I'm not going to defend it if anyone disagrees)
I added the second commit because I didn't want a oneline diff to be a whole PR, but if it is deemed unnecessary or harmful I can easily revert it.
This PR shores up the last of the default
cargo clippy
warnings.To be frank, it goes one commit further by changing some conversions into safe conversions that are arguably easier to read and more idiomatic (this part would be subjective and I'm not going to defend it if anyone disagrees)
I added the second commit because I didn't want a oneline diff to be a whole PR, but if it is deemed unnecessary or harmful I can easily revert it.