Commit 9b8a234
authored
Fix warnings in rustc nightly due to introduction of From<f16> for f32 (#23971)
# Objective
There's a new warning for code that uses literals with `Into<f32>`
because the compiler can no longer infer that the literal should be an
`f32` after `From<f16> for f32` was introduced.
See: rust-lang/rust#154024
## Solution
Explicit `f32` literals.
## Note
This behavior might make `Into<f32>` arguments inconvenient in the
future.1 parent 90b4154 commit 9b8a234
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
| 185 | + | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments