Commit 12775ea
Mark Lodato
Fix
**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=1348ce2173e812ff4199446a4fed5a99clippy lints1 parent 37274a1 commit 12775ea
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
178 | 175 | | |
179 | 176 | | |
180 | 177 | | |
| |||
0 commit comments