[INFO] cloning repository https://github.com/Unchain68/Blockchain_rust_rocket [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Unchain68/Blockchain_rust_rocket" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnchain68%2FBlockchain_rust_rocket", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnchain68%2FBlockchain_rust_rocket'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c669d1547e627a6308f5b4cfae2aad77dbe46fde [INFO] checking Unchain68/Blockchain_rust_rocket against master#18a6d911caba59605eb03db1452848a85d2e5879 for pr-112743 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnchain68%2FBlockchain_rust_rocket" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Unchain68/Blockchain_rust_rocket on toolchain 18a6d911caba59605eb03db1452848a85d2e5879 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Unchain68/Blockchain_rust_rocket [INFO] finished tweaking git repo https://github.com/Unchain68/Blockchain_rust_rocket [INFO] tweaked toml for git repo https://github.com/Unchain68/Blockchain_rust_rocket written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Unchain68/Blockchain_rust_rocket 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" "+18a6d911caba59605eb03db1452848a85d2e5879" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v0.9.15 [INFO] [stderr] Downloaded serde_codegen_internals v0.14.2 [INFO] [stderr] Downloaded serde_json v0.9.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f3107aaf34aeda0a36b6a01afd252b7631f70ba6c6093fd1690012c3c737424 [INFO] running `Command { std: "docker" "start" "-a" "3f3107aaf34aeda0a36b6a01afd252b7631f70ba6c6093fd1690012c3c737424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f3107aaf34aeda0a36b6a01afd252b7631f70ba6c6093fd1690012c3c737424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f3107aaf34aeda0a36b6a01afd252b7631f70ba6c6093fd1690012c3c737424", kill_on_drop: false }` [INFO] [stdout] 3f3107aaf34aeda0a36b6a01afd252b7631f70ba6c6093fd1690012c3c737424 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73063cf1ac126bc53eaeb59e2f68652b482cf2c5cd9428e909330e2f3ed499d7 [INFO] running `Command { std: "docker" "start" "-a" "73063cf1ac126bc53eaeb59e2f68652b482cf2c5cd9428e909330e2f3ed499d7", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling ref-cast v1.0.9 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling tokio v1.21.0 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling ghash v0.4.4 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling aes-gcm v0.9.4 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.5 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling futures v0.3.24 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling figment v0.10.7 [INFO] [stderr] Compiling multer v2.0.3 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling rocket v0.5.0-rc.2 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Checking spin v0.9.4 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking serde v0.9.15 [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking itoa v0.3.4 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling serde_codegen_internals v0.14.2 [INFO] [stderr] Compiling serde_derive v0.9.15 [INFO] [stderr] Checking serde_json v0.9.10 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.24 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.9 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Checking openssl v0.10.41 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Checking async-stream v0.3.3 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.2 [INFO] [stderr] Checking native-tls v0.2.10 [INFO] [stderr] Checking futures-executor v0.3.24 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Checking tokio-util v0.7.4 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-stream v0.1.9 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ubyte v0.10.3 [INFO] [stderr] Checking h2 v0.3.14 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking hellot-rocket v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `thread::current` [INFO] [stdout] --> src/blockchain.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{time::{SystemTime, UNIX_EPOCH}, thread::current}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Json`, `json`, `serde_json::to_string` [INFO] [stdout] --> src/blockchain.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::serde::{Serialize, json ,json::{Json, serde_json::to_string}, Deserialize}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest::generic_array::GenericArray` [INFO] [stdout] --> src/blockchain.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use sha2::{Sha256, Digest, digest::generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/blockchain.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::futures::future` [INFO] [stdout] --> src/blockchain.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::futures::future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::hyper::request` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::http::hyper::request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::response::status::NotFound` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::response::status::NotFound; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize`, `json`, `serde_json::to_string` [INFO] [stdout] --> src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::serde::{Serialize, json ,json::{Json, serde_json::to_string}, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/main.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::{routes, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task` [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::tokio::{task}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryJoinAll`, `try_join_all` [INFO] [stdout] --> src/main.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use rocket::futures::future::{try_join_all, TryJoinAll}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::current` [INFO] [stdout] --> src/blockchain.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{time::{SystemTime, UNIX_EPOCH}, thread::current}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Json`, `json`, `serde_json::to_string` [INFO] [stdout] --> src/blockchain.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::serde::{Serialize, json ,json::{Json, serde_json::to_string}, Deserialize}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest::generic_array::GenericArray` [INFO] [stdout] --> src/blockchain.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use sha2::{Sha256, Digest, digest::generic_array::GenericArray}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/blockchain.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::futures::future` [INFO] [stdout] --> src/blockchain.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::futures::future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::hyper::request` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::http::hyper::request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::response::status::NotFound` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::response::status::NotFound; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize`, `json`, `serde_json::to_string` [INFO] [stdout] --> src/main.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::serde::{Serialize, json ,json::{Json, serde_json::to_string}, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Request` [INFO] [stdout] --> src/main.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::{routes, Request}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task` [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::tokio::{task}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryJoinAll`, `try_join_all` [INFO] [stdout] --> src/main.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use rocket::futures::future::{try_join_all, TryJoinAll}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | for (i, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | let res = client.post(request_options_block.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let res = client.post(request_options_transactions.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | for (index, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | for (i, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | let res = client.post(request_options_block.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let res = client.post(request_options_transactions.uri.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | for (index, network_node_url) in new_blockchain.network_nodes.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | let mut correct_transaction; [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] --> src/blockchain.rs:189:21 [INFO] [stdout] | [INFO] [stdout] 189 | let mut correct_block; [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] --> src/blockchain.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | let mut correct_transaction; [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] --> src/blockchain.rs:189:21 [INFO] [stdout] | [INFO] [stdout] 189 | let mut correct_block; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `receive_new_block` is never used [INFO] [stdout] --> src/main.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn receive_new_block(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_node` is never used [INFO] [stdout] --> src/main.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn register_node(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consensus` is never used [INFO] [stdout] --> src/main.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn consensus() -> Json<&'static Blockchain> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `chain_is_valid`, `get_block`, `get_transaction`, and `get_address_data` are never used [INFO] [stdout] --> src/blockchain.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn chain_is_valid(&self, blockchain : &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_block(&self, block_hash : String) -> Result<&Block, String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn get_transaction(&self, transaction_id : String) -> Result<(&Transaction, &Block), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn get_address_data(&self, address : String) -> (Vec<&Transaction>, u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `new_blockchain` should have an upper case name [INFO] [stdout] --> src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | static mut new_blockchain: Blockchain = blockchain::Blockchain { chain: Vec::::new(), pending_transaction: Vec:: src/blockchain.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | write!(f,"{} {} {:?} {} {} {}",self.index,self.timestamp,self.transactions,self.nonce,self.hash,self.previous_blockhash); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | write!(f,"{} {} {} {}",self.amount, self.sender, self.recipient, self.transaction_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | write!(f,"{} {:?}",self.index, self.transactions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `receive_new_block` is never used [INFO] [stdout] --> src/main.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn receive_new_block(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_node` is never used [INFO] [stdout] --> src/main.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn register_node(data: String) -> Json { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consensus` is never used [INFO] [stdout] --> src/main.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn consensus() -> Json<&'static Blockchain> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `chain_is_valid`, `get_block`, `get_transaction`, and `get_address_data` are never used [INFO] [stdout] --> src/blockchain.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn chain_is_valid(&self, blockchain : &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_block(&self, block_hash : String) -> Result<&Block, String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn get_transaction(&self, transaction_id : String) -> Result<(&Transaction, &Block), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn get_address_data(&self, address : String) -> (Vec<&Transaction>, u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `new_blockchain` should have an upper case name [INFO] [stdout] --> src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | static mut new_blockchain: Blockchain = blockchain::Blockchain { chain: Vec::::new(), pending_transaction: Vec:: src/blockchain.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | write!(f,"{} {} {:?} {} {} {}",self.index,self.timestamp,self.transactions,self.nonce,self.hash,self.previous_blockhash); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | write!(f,"{} {} {} {}",self.amount, self.sender, self.recipient, self.transaction_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/blockchain.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | write!(f,"{} {:?}",self.index, self.transactions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 59.39s [INFO] running `Command { std: "docker" "inspect" "73063cf1ac126bc53eaeb59e2f68652b482cf2c5cd9428e909330e2f3ed499d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73063cf1ac126bc53eaeb59e2f68652b482cf2c5cd9428e909330e2f3ed499d7", kill_on_drop: false }` [INFO] [stdout] 73063cf1ac126bc53eaeb59e2f68652b482cf2c5cd9428e909330e2f3ed499d7