Repository navigation
Commit 7db1ea9
committed
Ignore needless_late_init Clippy lint
error: unneeded late initalization
--> tests/../src/lexical/float.rs:173:9
|
173 | let exp: u64;
| ^^^^^^^^^^^^^
|
= note: `-D clippy::needless-late-init` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
help: declare `exp` here
|
174 | let exp: u64 = if (fp.exp == F::DENORMAL_EXPONENT) && (fp.mant & F::HIDDEN_BIT_MASK.as_u64()) == 0 {
| ++++++++++++++
help: remove the assignments from the branches
|
175 ~ 0
176 | } else {
177 ~ (fp.exp + F::EXPONENT_BIAS) as u64
|
help: add a semicolon after the `if` expression
|
178 | };
| +1 parent fc0ca07 commit 7db1ea9
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments