Root event date #125
Merged
Root event date #125
GitHub Actions / clippy
succeeded
Oct 13, 2023 in 1s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.1 (d5c2e9c34 2023-09-13)
- cargo 1.72.1 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (d5c2e9c 2023-09-13)
Annotations
Check warning on line 369 in trustchain-ion/src/utils.rs
github-actions / clippy
`if` chain can be rewritten with `match`
warning: `if` chain can be rewritten with `match`
--> trustchain-ion/src/utils.rs:365:9
|
365 | / if current_unixtime as i64 > target_unixtime {
366 | | end_height = current_height; // TODO CHECK: original script has: current_height - 1;
367 | | } else if (current_unixtime as i64) < target_unixtime {
368 | | start_height = current_height; // TODO CHECK: original script has: current_height + 1;
369 | | }
| |_________^
|
= help: consider rewriting the `if` chain to use `cmp` and `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
= note: `#[warn(clippy::comparison_chain)]` on by default
Check warning on line 9 in trustchain-ion/src/utils.rs
github-actions / clippy
unused import: `StreamExt`
warning: unused import: `StreamExt`
--> trustchain-ion/src/utils.rs:9:15
|
9 | use futures::{StreamExt, TryStreamExt};
| ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Loading