Skip to content

Code simplifications #1829

Code simplifications

Code simplifications #1829

Triggered via push July 12, 2023 16:16
Status Failure
Total duration 39m 44s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: push
Matrix: build
Matrix: test
Fit to window
Zoom out
Zoom in

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