[INFO] cloning repository https://github.com/thisisnohi/RustBlockChain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thisisnohi/RustBlockChain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthisisnohi%2FRustBlockChain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthisisnohi%2FRustBlockChain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c8509a11d6d3f39947c5f264c53352d0407946b [INFO] building thisisnohi/RustBlockChain against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthisisnohi%2FRustBlockChain" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thisisnohi/RustBlockChain on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thisisnohi/RustBlockChain [INFO] finished tweaking git repo https://github.com/thisisnohi/RustBlockChain [INFO] tweaked toml for git repo https://github.com/thisisnohi/RustBlockChain written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/thisisnohi/RustBlockChain 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be39749c8197372b972e5386fb8ca78ec7409a7ed8f3997728e3e76312627901 [INFO] running `Command { std: "docker" "start" "-a" "be39749c8197372b972e5386fb8ca78ec7409a7ed8f3997728e3e76312627901", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be39749c8197372b972e5386fb8ca78ec7409a7ed8f3997728e3e76312627901", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be39749c8197372b972e5386fb8ca78ec7409a7ed8f3997728e3e76312627901", kill_on_drop: false }` [INFO] [stdout] be39749c8197372b972e5386fb8ca78ec7409a7ed8f3997728e3e76312627901 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e62c9914c996d15bd65011142952d1b86c281c9026678fa9d5b1942ebdd8f77 [INFO] running `Command { std: "docker" "start" "-a" "9e62c9914c996d15bd65011142952d1b86c281c9026678fa9d5b1942ebdd8f77", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling libc v0.2.160 [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.213 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling rustls v0.23.15 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cc v1.1.30 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling webpki-roots v0.26.6 [INFO] [stderr] Compiling openssl-src v300.4.0+3.4.0 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling impl-more v0.1.8 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling serde_derive v1.0.213 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling sha256 v1.5.0 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling block_two v0.1.0 (/opt/rustwide/workdir/block_two) [INFO] [stderr] Compiling block_one v0.1.0 (/opt/rustwide/workdir/block_one) [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stdout] warning: associated function `is_valid_block` is never used [INFO] [stdout] --> block_two/src/lib.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | fn is_valid_block(new_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> block_two/src/lib.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | new_block.index >= 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 67 | let _ = f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> block_two/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> block_one/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 6 | timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_one/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockChain` should have a snake case name [INFO] [stdout] --> block_one/src/main.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut blockChain = BlockChain::init(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_chain` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Compiling sqlx v0.8.2 [INFO] [stderr] Compiling actix-cors v0.7.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling webservice v0.1.0 (/opt/rustwide/workdir/webserver) [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> webserver/src/main.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info, log, log_enabled, trace, warn, Level}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> webserver/src/bin/block-chain.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | /// lazy_static 宏创建一个全局可访问的app_state: [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgPoolOptions` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::postgres::PgPoolOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Into` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::Into; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> webserver/src/bin/../errors.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{error, info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db_access::block_chain_db::all_blocks` [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db_access::block_chain_db::all_blocks; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | if (BlockChain::is_valid_new_block(&form.block, &chain.get_last_block().unwrap())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (BlockChain::is_valid_new_block(&form.block, &chain.get_last_block().unwrap())) { [INFO] [stdout] 70 + if BlockChain::is_valid_new_block(&form.block, &chain.get_last_block().unwrap()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> webserver/src/bin/../handles/general.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> webserver/src/bin/../handles/general.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{web, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db_access::block_chain_db::all_blocks` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db_access::block_chain_db::all_blocks; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::block_chain_model::BlockChain` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::block_chain_model::BlockChain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::block_form::BlockForm` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::block_form::BlockForm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> webserver/src/bin/../models/block_chain_model.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::block_chain_model::BlockChain` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::models::block_chain_model::BlockChain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cloned_broad_block` is assigned to, but never used [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | let cloned_broad_block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cloned_broad_block` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cloned_broad_block` is never read [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | cloned_broad_block = broad_block.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/general.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cors` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let cors = Cors::default() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NotFound`, `LoadError`, and `NodeError` are never constructed [INFO] [stdout] --> webserver/src/bin/../errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum MyError { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | LoadError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | NodeExist(String), [INFO] [stdout] 15 | NodeError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_block` is never used [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn last_block() -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_valid_chain` and `replace_chain` are never used [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl BlockChain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn is_valid_chain(blocks: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn replace_chain(&mut self, blocks: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_blocks` is never used [INFO] [stdout] --> webserver/src/bin/../dbaccess/block_chain_db.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn all_blocks() -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_block_chain` is never used [INFO] [stdout] --> webserver/src/bin/../dbaccess/block_chain_db.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn init_block_chain() -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_block` is never used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn is_valid_block(new_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | new_block.index >= 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 72 | let _ = f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 34s [INFO] running `Command { std: "docker" "inspect" "9e62c9914c996d15bd65011142952d1b86c281c9026678fa9d5b1942ebdd8f77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e62c9914c996d15bd65011142952d1b86c281c9026678fa9d5b1942ebdd8f77", kill_on_drop: false }` [INFO] [stdout] 9e62c9914c996d15bd65011142952d1b86c281c9026678fa9d5b1942ebdd8f77 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e83d600f6c45824f0ea45bfebbacfb402da056db0ce8f35a0729b41eb775ba7e [INFO] running `Command { std: "docker" "start" "-a" "e83d600f6c45824f0ea45bfebbacfb402da056db0ce8f35a0729b41eb775ba7e", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stdout] warning: associated function `is_valid_block` is never used [INFO] [stdout] --> block_two/src/lib.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | fn is_valid_block(new_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> block_two/src/lib.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | new_block.index >= 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling block_two v0.1.0 (/opt/rustwide/workdir/block_two) [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 67 | let _ = f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling block_one v0.1.0 (/opt/rustwide/workdir/block_one) [INFO] [stderr] Compiling webservice v0.1.0 (/opt/rustwide/workdir/webserver) [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> webserver/src/main.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info, log, log_enabled, trace, warn, Level}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> block_two/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> webserver/src/bin/block-chain.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | /// lazy_static 宏创建一个全局可访问的app_state: [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgPoolOptions` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::postgres::PgPoolOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Into` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::Into; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> webserver/src/bin/../errors.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{error, info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db_access::block_chain_db::all_blocks` [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db_access::block_chain_db::all_blocks; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | if (BlockChain::is_valid_new_block(&form.block, &chain.get_last_block().unwrap())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (BlockChain::is_valid_new_block(&form.block, &chain.get_last_block().unwrap())) { [INFO] [stdout] 70 + if BlockChain::is_valid_new_block(&form.block, &chain.get_last_block().unwrap()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> webserver/src/bin/../handles/general.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> webserver/src/bin/../handles/general.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{web, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db_access::block_chain_db::all_blocks` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db_access::block_chain_db::all_blocks; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::block_chain_model::BlockChain` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::block_chain_model::BlockChain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::block_form::BlockForm` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::block_form::BlockForm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> webserver/src/bin/../models/block_chain_model.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::block_chain_model::BlockChain` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::models::block_chain_model::BlockChain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_block` is never used [INFO] [stdout] --> block_two/src/lib.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | fn is_valid_block(new_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> block_two/src/lib.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | new_block.index >= 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_two/src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 67 | let _ = f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> block_one/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 6 | timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> block_one/src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockChain` should have a snake case name [INFO] [stdout] --> block_one/src/main.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut blockChain = BlockChain::init(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_chain` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cloned_broad_block` is assigned to, but never used [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | let cloned_broad_block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_cloned_broad_block` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cloned_broad_block` is never read [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | cloned_broad_block = broad_block.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/general.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> webserver/src/bin/../handles/node_service.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut app_state = GLOBAL_APP_STATE.lock().unwrap().clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cors` [INFO] [stdout] --> webserver/src/bin/block-chain.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let cors = Cors::default() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NotFound`, `LoadError`, and `NodeError` are never constructed [INFO] [stdout] --> webserver/src/bin/../errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum MyError { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | LoadError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | NodeExist(String), [INFO] [stdout] 15 | NodeError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_block` is never used [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn last_block() -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_valid_chain` and `replace_chain` are never used [INFO] [stdout] --> webserver/src/bin/../handles/block_chain_service.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl BlockChain { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn is_valid_chain(blocks: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn replace_chain(&mut self, blocks: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_blocks` is never used [INFO] [stdout] --> webserver/src/bin/../dbaccess/block_chain_db.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn all_blocks() -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_block_chain` is never used [INFO] [stdout] --> webserver/src/bin/../dbaccess/block_chain_db.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn init_block_chain() -> Result, MyError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_block` is never used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn is_valid_block(new_block: &Block) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | new_block.index >= 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = f.write_str(&*format!("prev_block_hash[{}]\n", self.prev_block_hash)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = f.write_str(&*format!("index[{}]\n", self.index)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webserver/src/bin/../models/block_model.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 72 | let _ = f.write_str(&*format!("timestamp[{}]\n", self.timestamp)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.72s [INFO] running `Command { std: "docker" "inspect" "e83d600f6c45824f0ea45bfebbacfb402da056db0ce8f35a0729b41eb775ba7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e83d600f6c45824f0ea45bfebbacfb402da056db0ce8f35a0729b41eb775ba7e", kill_on_drop: false }` [INFO] [stdout] e83d600f6c45824f0ea45bfebbacfb402da056db0ce8f35a0729b41eb775ba7e