[INFO] cloning repository https://github.com/jaeyoung0909/Jupiterium [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jaeyoung0909/Jupiterium" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaeyoung0909%2FJupiterium", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaeyoung0909%2FJupiterium'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a48f2b021e9f92f852da00a0ebb29a5ad9c3aaca [INFO] checking jaeyoung0909/Jupiterium against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaeyoung0909%2FJupiterium" "/workspace/builds/worker-119/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-119/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jaeyoung0909/Jupiterium on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jaeyoung0909/Jupiterium [INFO] finished tweaking git repo https://github.com/jaeyoung0909/Jupiterium [INFO] tweaked toml for git repo https://github.com/jaeyoung0909/Jupiterium written to /workspace/builds/worker-119/source/Cargo.toml [INFO] crate git repo https://github.com/jaeyoung0909/Jupiterium already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b45ab2c0f579e829640e3194596db5a6c776749f3858aa70ebae71ede6e0318d [INFO] running `Command { std: "docker" "start" "-a" "b45ab2c0f579e829640e3194596db5a6c776749f3858aa70ebae71ede6e0318d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b45ab2c0f579e829640e3194596db5a6c776749f3858aa70ebae71ede6e0318d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b45ab2c0f579e829640e3194596db5a6c776749f3858aa70ebae71ede6e0318d", kill_on_drop: false }` [INFO] [stdout] b45ab2c0f579e829640e3194596db5a6c776749f3858aa70ebae71ede6e0318d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 425ba9062355ec5b4493ec40c40380813385f7262f4ee96719dfd2f054161025 [INFO] running `Command { std: "docker" "start" "-a" "425ba9062355ec5b4493ec40c40380813385f7262f4ee96719dfd2f054161025", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking blake2 v0.9.1 [INFO] [stderr] Checking Jupiterium v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Block`, `TransactionData`, `Transaction` [INFO] [stdout] --> src/main.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use chain::{BlockChain, Block, Transaction, TransactionData}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block`, `TransactionData`, `Transaction` [INFO] [stdout] --> src/main.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use chain::{BlockChain, Block, Transaction, TransactionData}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/chain/mod.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [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: unused variable: `bc` [INFO] [stdout] --> src/main.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/chain/mod.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut bc = BlockChain::new(); [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: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/chain/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `created_at` [INFO] [stdout] --> src/chain/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | created_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `record` [INFO] [stdout] --> src/chain/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) record: TransactionData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `signature` [INFO] [stdout] --> src/chain/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | signature: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(from: String, transaction_data: TransactionData, nonce: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/chain/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn execute (&self, world_state: &mut T, is_initial: &bool) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn calculate_hash(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_signature` [INFO] [stdout] --> src/chain/mod.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn check_signature(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_signed` [INFO] [stdout] --> src/chain/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn is_signed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateUserAccount` [INFO] [stdout] --> src/chain/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | CreateUserAccount (String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeStoreValue` [INFO] [stdout] --> src/chain/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | ChangeStoreValue {key: String, value: String}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TransferTokens` [INFO] [stdout] --> src/chain/mod.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | TransferTokens {to: String, amount: u128}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateTokens` [INFO] [stdout] --> src/chain/mod.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | CreateTokens {receiver: String, amount: u128}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/chain/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub(crate) transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/chain/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prev_hash` [INFO] [stdout] --> src/chain/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | prev_hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(prev_hash: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn calculate_hash(& self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_transaction` [INFO] [stdout] --> src/chain/mod.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_transaction_count` [INFO] [stdout] --> src/chain/mod.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn get_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_hash` [INFO] [stdout] --> src/chain/mod.rs:156:19 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) fn update_hash(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_nonce` [INFO] [stdout] --> src/chain/mod.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | fn set_nonce(&mut self, nonce: u128){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify_own_hash` [INFO] [stdout] --> src/chain/mod.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_own_hash(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pending_transactions` [INFO] [stdout] --> src/chain/mod.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | pending_transactions: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_block` [INFO] [stdout] --> src/chain/mod.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn append_block(&mut self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/chain/mod.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_last_block_hash` [INFO] [stdout] --> src/chain/mod.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn get_last_block_hash(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_validity` [INFO] [stdout] --> src/chain/mod.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `User` [INFO] [stdout] --> src/chain/mod.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | User, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Contract` [INFO] [stdout] --> src/chain/mod.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 322 | Contract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Validator` [INFO] [stdout] --> src/chain/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | / Validator { [INFO] [stdout] 324 | | correctly_validated_blocks: u128, [INFO] [stdout] 325 | | incorrectly_validated_blocks: u128, [INFO] [stdout] 326 | | you_get_the_idea: bool, [INFO] [stdout] 327 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `byte_vector_to_string` [INFO] [stdout] --> src/chain/mod.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn byte_vector_to_string(arr: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Jupiterium` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `jupiterium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/chain/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `created_at` [INFO] [stdout] --> src/chain/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | created_at: SystemTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `record` [INFO] [stdout] --> src/chain/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) record: TransactionData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `signature` [INFO] [stdout] --> src/chain/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | signature: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(from: String, transaction_data: TransactionData, nonce: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/chain/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn execute (&self, world_state: &mut T, is_initial: &bool) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn calculate_hash(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_signature` [INFO] [stdout] --> src/chain/mod.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn check_signature(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_signed` [INFO] [stdout] --> src/chain/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn is_signed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateUserAccount` [INFO] [stdout] --> src/chain/mod.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | CreateUserAccount (String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeStoreValue` [INFO] [stdout] --> src/chain/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | ChangeStoreValue {key: String, value: String}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TransferTokens` [INFO] [stdout] --> src/chain/mod.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | TransferTokens {to: String, amount: u128}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CreateTokens` [INFO] [stdout] --> src/chain/mod.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | CreateTokens {receiver: String, amount: u128}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `transactions` [INFO] [stdout] --> src/chain/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub(crate) transactions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/chain/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prev_hash` [INFO] [stdout] --> src/chain/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | prev_hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `nonce` [INFO] [stdout] --> src/chain/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | nonce: u128, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chain/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn new(prev_hash: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_hash` [INFO] [stdout] --> src/chain/mod.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn calculate_hash(& self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_transaction` [INFO] [stdout] --> src/chain/mod.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn add_transaction(&mut self, transaction: Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_transaction_count` [INFO] [stdout] --> src/chain/mod.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn get_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_hash` [INFO] [stdout] --> src/chain/mod.rs:156:19 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) fn update_hash(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_nonce` [INFO] [stdout] --> src/chain/mod.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | fn set_nonce(&mut self, nonce: u128){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify_own_hash` [INFO] [stdout] --> src/chain/mod.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_own_hash(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pending_transactions` [INFO] [stdout] --> src/chain/mod.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | pending_transactions: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_block` [INFO] [stdout] --> src/chain/mod.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn append_block(&mut self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/chain/mod.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_last_block_hash` [INFO] [stdout] --> src/chain/mod.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn get_last_block_hash(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_validity` [INFO] [stdout] --> src/chain/mod.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | fn check_validity(& self, block: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `User` [INFO] [stdout] --> src/chain/mod.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | User, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Contract` [INFO] [stdout] --> src/chain/mod.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 322 | Contract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Validator` [INFO] [stdout] --> src/chain/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | / Validator { [INFO] [stdout] 324 | | correctly_validated_blocks: u128, [INFO] [stdout] 325 | | incorrectly_validated_blocks: u128, [INFO] [stdout] 326 | | you_get_the_idea: bool, [INFO] [stdout] 327 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `byte_vector_to_string` [INFO] [stdout] --> src/chain/mod.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn byte_vector_to_string(arr: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Jupiterium` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `jupiterium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.43s [INFO] running `Command { std: "docker" "inspect" "425ba9062355ec5b4493ec40c40380813385f7262f4ee96719dfd2f054161025", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "425ba9062355ec5b4493ec40c40380813385f7262f4ee96719dfd2f054161025", kill_on_drop: false }` [INFO] [stdout] 425ba9062355ec5b4493ec40c40380813385f7262f4ee96719dfd2f054161025