-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PoS - use checked arithmetics #17
Comments
@brentstone do you know what the status of this is? we should definitely do it 😄 |
still open I think |
given everything is using the updated amounts now, since |
I think it's prob still good to keep open as a reminder to go through and ensure this is universally true at some point. I'd bet there are still some PoS things which could use this. |
Would it be possible to configure our Rust linter to warn/error when unchecked arithmetic is used? |
I don’t see anything out of box, but it should be possible to add this to clippy |
ah, there is a way - we can configure clippy "disallowed-methods" https://doc.rust-lang.org/nightly/clippy/lint_configuration.html#disallowed-methods |
It seems like the original instances that this issue referenced have already been fixed, but nevertheless I've added some more checked arithmetics in the PoS code in #2178. |
Use checked arithmetics in the PoS library code (has a TODO left in code)
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: