Skip to content

Fix many (not all) clippy::pedantic warnings. - #8

Open
dbongartz wants to merge 1 commit into
iColgateZz:mainfrom
dbongartz:fix/linter-fixes
Open

Fix many (not all) clippy::pedantic warnings.#8
dbongartz wants to merge 1 commit into
iColgateZz:mainfrom
dbongartz:fix/linter-fixes

Conversation

@dbongartz

Copy link
Copy Markdown
Contributor

OK, this is a a bit bigger. I just ran clippy with pedantic and fixed stuff while reviewing the code for usage at work. It's completely optional for me, but it should at least be looked at because of the silent wraparounds which could occur before the change.

This adds some unwraps on integer casts which "should" never happen.

It also adds one which will always happen
at signal_scaling_safety_checker.rs:275
which I am not sure how to resolve.

The rest should be fine.

This adds some unwraps on integer casts which "should" never happen.

It also adds one which will always happen
at `signal_scaling_safety_checker.rs:275`
which I am not sure how to resolve.

This is better than before where all of this silently wrapped.

The rest should be fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant