4 ms·
There are two clippy lints that cover these possible panics: - indexing_slicing - integer_arithmetic Enabling those will throw an error on usage in your code
by pitaj 4y ago
There are two clippy lints that cover these possible panics:
- indexing_slicing
- integer_arithmetic
Enabling those will throw an error on usage in your codebase.
Also it's worth noting that arithmetic is only checked against overflow when building in debug mode by default.
- couchand 4y ago> Also it's worth noting that arithmetic is only checked against overflow when building in debug mode by default. Yes, the default behavior in release mode is even worse!