Skip to content
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

Fix clippy lints #1

Merged
merged 1 commit into from
May 6, 2022
Merged

Fix clippy lints #1

merged 1 commit into from
May 6, 2022

Commits on May 6, 2022

  1. Fix clippy lints

    **This Commit**
    Just fixes two small `clippy` lints.
    
    **Note**
    When handling one of the `clippy` lints (unnecessary `return`) I took a
    look at `f32_to_i16` and it looked to me like this was doing a
    saturating cast. If that's the case then, after [doing some
    research][0], it looks like `as` [already does saturating casts][1]!
    
    [0]: rust-lang/rust#71269
    [1]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=1348ce2173e812ff4199446a4fed5a99
    Mark Lodato committed May 6, 2022
    Configuration menu
    Copy the full SHA
    12775ea View commit details
    Browse the repository at this point in the history