[INFO] fetching crate riftenlabs-indexer 0.1.0... [INFO] linting riftenlabs-indexer-0.1.0 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate riftenlabs-indexer 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate riftenlabs-indexer 0.1.0 [INFO] finished tweaking crates.io crate riftenlabs-indexer 0.1.0 [INFO] tweaked toml for crates.io crate riftenlabs-indexer 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate riftenlabs-indexer 0.1.0 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate riftenlabs-indexer 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytemuck v1.17.0 [INFO] [stderr] Downloaded rust_decimal_macros v1.36.0 [INFO] [stderr] Downloaded borsh-derive v1.5.1 [INFO] [stderr] Downloaded unicase_serde v0.1.0 [INFO] [stderr] Downloaded r2d2_sqlite v0.24.0 [INFO] [stderr] Downloaded borsh v1.5.1 [INFO] [stderr] Downloaded electrum-client-netagnostic v0.19.0 [INFO] [stderr] Downloaded rocket_cors v0.6.0 [INFO] [stderr] Downloaded riftenlabs-defi v0.1.2 [INFO] [stderr] Downloaded stderrlog v0.6.0 [INFO] [stderr] Downloaded rustls-webpki v0.102.6 [INFO] [stderr] Downloaded bitcoincash v0.29.2 [INFO] [stderr] Downloaded rustls v0.23.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9cd428bb97a8da76c661b0067bb87869bec40d321eabedfe3192bac44e553431 [INFO] running `Command { std: "docker" "start" "-a" "9cd428bb97a8da76c661b0067bb87869bec40d321eabedfe3192bac44e553431", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cd428bb97a8da76c661b0067bb87869bec40d321eabedfe3192bac44e553431", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cd428bb97a8da76c661b0067bb87869bec40d321eabedfe3192bac44e553431", kill_on_drop: false }` [INFO] [stdout] 9cd428bb97a8da76c661b0067bb87869bec40d321eabedfe3192bac44e553431 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 138250d761b5f43bbb67cf8d197d283b84a7349b2fd123f2c2598f84a4e05e4d [INFO] running `Command { std: "docker" "start" "-a" "138250d761b5f43bbb67cf8d197d283b84a7349b2fd123f2c2598f84a4e05e4d", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling cc v1.1.14 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling tokio v1.39.3 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling libsqlite3-sys v0.28.0 [INFO] [stderr] Compiling indexmap v2.4.0 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking rustls-pki-types v1.8.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking addr2line v0.22.0 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking object v0.36.3 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling rustls v0.23.12 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.102.6 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking rusqlite v0.31.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking webpki-roots v0.26.3 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking r2d2_sqlite v0.24.0 [INFO] [stderr] Checking stderrlog v0.6.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling rust_decimal_macros v1.36.0 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking serde_json v1.0.127 [INFO] [stderr] Checking bitcoin_hashes v0.11.0 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking unicase_serde v0.1.0 [INFO] [stderr] Checking toml_edit v0.22.20 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking electrum-client-netagnostic v0.19.0 [INFO] [stderr] Checking ureq v2.10.1 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Checking bitcoincash v0.29.2 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking figment v0.10.19 [INFO] [stderr] Checking riftenlabs-defi v0.1.2 [INFO] [stderr] Checking rocket_cors v0.6.0 [INFO] [stderr] Checking riftenlabs-indexer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/cashaddr/mod.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | use hex; [INFO] [stdout] | ^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manually reimplementing `div_ceil` [INFO] [stdout] --> src/cashaddr/mod.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let num_bytes = (data.len() * inbits as usize + outbits as usize - 1) / outbits as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `(data.len() * inbits as usize).div_ceil(outbits as usize)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/chain.rs:393:12 [INFO] [stdout] | [INFO] [stdout] 393 | if new_headers.len() % 1000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `new_headers.len().is_multiple_of(1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this loop could be written as a `while let` loop [INFO] [stdout] --> src/index.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / loop { [INFO] [stdout] 210 | | let (block_height, mtp, block) = match block_recv.recv()? { [INFO] [stdout] 211 | | Some(res) => res, [INFO] [stdout] 212 | | None => break, [INFO] [stdout] ... | [INFO] [stdout] 268 | | ); [INFO] [stdout] 269 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop [INFO] [stdout] = note: `#[warn(clippy::while_let_loop)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 209 ~ while let Some(res) = block_recv.recv()? { [INFO] [stdout] 210 + let (block_height, mtp, block) = res; [INFO] [stdout] 211 + .. [INFO] [stdout] 212 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/bcmr/parsedbcmr.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | &SOURCE_ON_CHAIN, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `SOURCE_ON_CHAIN` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bcmr/mod.rs:305:56 [INFO] [stdout] | [INFO] [stdout] 305 | let tx: Transaction = deserialize(&hex::decode(&tx_hex).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `tx_hex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bcmr/mod.rs:323:56 [INFO] [stdout] | [INFO] [stdout] 323 | let tx: Transaction = deserialize(&hex::decode(&tx_hex).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `tx_hex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/bcmr/mod.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | assert!(!is_genesis_tx(¬_genesis_tx).is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `is_genesis_tx(¬_genesis_tx).is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bcmr/mod.rs:332:68 [INFO] [stdout] | [INFO] [stdout] 332 | let not_genesis_tx: Transaction = deserialize(&hex::decode(&tx_hex).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `tx_hex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/bcmr/mod.rs:335:64 [INFO] [stdout] | [INFO] [stdout] 335 | let genesis_tx: Transaction = deserialize(&hex::decode(&tx_hex).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `tx_hex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manually reimplementing `div_ceil` [INFO] [stdout] --> src/cashaddr/mod.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let num_bytes = (data.len() * inbits as usize + outbits as usize - 1) / outbits as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `(data.len() * inbits as usize).div_ceil(outbits as usize)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `BlockHeader` which implements the `Copy` trait [INFO] [stdout] --> src/chain.rs:197:36 [INFO] [stdout] | [INFO] [stdout] 197 | .map(|(_hash, header)| header.clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try dereferencing it: `*header` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/chain.rs:393:12 [INFO] [stdout] | [INFO] [stdout] 393 | if new_headers.len() % 1000 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `new_headers.len().is_multiple_of(1000)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u64` is unnecessary [INFO] [stdout] --> src/chain.rs:480:34 [INFO] [stdout] | [INFO] [stdout] 480 | chain.push((genesis, 0 as u64)); [INFO] [stdout] | ^^^^^^^^ help: try: `0_u64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u64` -> `u64`) [INFO] [stdout] --> src/chain.rs:493:22 [INFO] [stdout] | [INFO] [stdout] 493 | Some(*height as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `(*height)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this loop could be written as a `while let` loop [INFO] [stdout] --> src/index.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / loop { [INFO] [stdout] 210 | | let (block_height, mtp, block) = match block_recv.recv()? { [INFO] [stdout] 211 | | Some(res) => res, [INFO] [stdout] 212 | | None => break, [INFO] [stdout] ... | [INFO] [stdout] 268 | | ); [INFO] [stdout] 269 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop [INFO] [stdout] = note: `#[warn(clippy::while_let_loop)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 209 ~ while let Some(res) = block_recv.recv()? { [INFO] [stdout] 210 + let (block_height, mtp, block) = res; [INFO] [stdout] 211 + .. [INFO] [stdout] 212 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 57s [INFO] running `Command { std: "docker" "inspect" "138250d761b5f43bbb67cf8d197d283b84a7349b2fd123f2c2598f84a4e05e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "138250d761b5f43bbb67cf8d197d283b84a7349b2fd123f2c2598f84a4e05e4d", kill_on_drop: false }` [INFO] [stdout] 138250d761b5f43bbb67cf8d197d283b84a7349b2fd123f2c2598f84a4e05e4d