Code simplifications #1829
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yml
on: push
Bitrot check
3m 15s
Clippy (MSRV)
2m 36s
Clippy (beta)
15s
Code coverage
39m 33s
Intra-doc links
3m 39s
Rustfmt
20s
Matrix: build
Matrix: test
Annotations
4 errors
Clippy (beta)
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
|
Rustfmt
Process completed with exit code 1.
|
unnecessary closure used with `bool::then`:
zcash_client_backend/src/data_api/scanning.rs#L92
error: unnecessary closure used with `bool::then`
--> zcash_client_backend/src/data_api/scanning.rs:92:9
|
92 | / (p > self.block_range.start && p < self.block_range.end).then(|| (
93 | | ScanRange {
94 | | block_range: self.block_range.start..p,
95 | | priority: self.priority,
... |
100 | | },
101 | | ))
| |__________^
|
= note: `-D clippy::unnecessary-lazy-evaluations` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
help: use `then_some(..)` instead
|
92 ~ (p > self.block_range.start && p < self.block_range.end).then_some((
93 + ScanRange {
94 + block_range: self.block_range.start..p,
95 + priority: self.priority,
96 + },
97 + ScanRange {
98 + block_range: p..self.block_range.end,
99 + priority: self.priority,
100 + },
101 + ))
|
|
Clippy (MSRV)
Clippy had exited with the 101 exit code
|