[INFO] cloning repository https://github.com/LEON-HYZ/ece598-block-chain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LEON-HYZ/ece598-block-chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLEON-HYZ%2Fece598-block-chain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLEON-HYZ%2Fece598-block-chain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28bac973e5eeacc817dfadabc3b544fc4a029cf5 [INFO] checking LEON-HYZ/ece598-block-chain against try#342ed2e8608ee307743c341962b427652cdb06e9 for pr-146562 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLEON-HYZ%2Fece598-block-chain" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LEON-HYZ/ece598-block-chain [INFO] finished tweaking git repo https://github.com/LEON-HYZ/ece598-block-chain [INFO] tweaked toml for git repo https://github.com/LEON-HYZ/ece598-block-chain written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LEON-HYZ/ece598-block-chain on toolchain 342ed2e8608ee307743c341962b427652cdb06e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+342ed2e8608ee307743c341962b427652cdb06e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LEON-HYZ/ece598-block-chain 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" "+342ed2e8608ee307743c341962b427652cdb06e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded chunked_transfer v0.3.1 [INFO] [stderr] Downloaded wasm-bindgen-webidl v0.2.51 [INFO] [stderr] Downloaded ascii v0.8.7 [INFO] [stderr] Downloaded tiny_http v0.6.2 [INFO] [stderr] Downloaded hex-literal-impl v0.2.1 [INFO] [stderr] Downloaded modpow v1.0.1 [INFO] [stderr] Downloaded termcolor v0.3.6 [INFO] [stderr] Downloaded mio-extras v2.0.5 [INFO] [stderr] Downloaded crossbeam v0.7.2 [INFO] [stderr] Downloaded term_size v0.3.1 [INFO] [stderr] Downloaded hex-literal v0.2.1 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.51 [INFO] [stderr] Downloaded bincode v1.2.0 [INFO] [stderr] Downloaded hex v0.4.0 [INFO] [stderr] Downloaded untrusted v0.7.0 [INFO] [stderr] Downloaded wasm-bindgen v0.2.51 [INFO] [stderr] Downloaded js-sys v0.3.28 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.51 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.51 [INFO] [stderr] Downloaded wincolor v0.1.6 [INFO] [stderr] Downloaded web-sys v0.3.28 [INFO] [stderr] Downloaded ring v0.16.9 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.51 [INFO] [stderr] Downloaded stderrlog v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+342ed2e8608ee307743c341962b427652cdb06e9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 724b88d294ab5b36f9c4376c1c8c4d3285dd6af31fac9ef053cbc1febfb9356e [INFO] running `Command { std: "docker" "start" "-a" "724b88d294ab5b36f9c4376c1c8c4d3285dd6af31fac9ef053cbc1febfb9356e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "724b88d294ab5b36f9c4376c1c8c4d3285dd6af31fac9ef053cbc1febfb9356e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "724b88d294ab5b36f9c4376c1c8c4d3285dd6af31fac9ef053cbc1febfb9356e", kill_on_drop: false }` [INFO] [stdout] 724b88d294ab5b36f9c4376c1c8c4d3285dd6af31fac9ef053cbc1febfb9356e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+342ed2e8608ee307743c341962b427652cdb06e9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8944195011ced5133ef4c4eb94c33b2ed7450b956e93366c4a328f4516b65792 [INFO] running `Command { std: "docker" "start" "-a" "8944195011ced5133ef4c4eb94c33b2ed7450b956e93366c4a328f4516b65792", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Checking ascii v0.8.7 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking chunked_transfer v0.3.1 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking termcolor v0.3.6 [INFO] [stderr] Checking hex v0.4.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking crossbeam v0.7.2 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking modpow v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling hex-literal-impl v0.2.1 [INFO] [stderr] Checking hex-literal v0.2.1 [INFO] [stderr] Checking chrono v0.4.9 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Checking stderrlog v0.4.1 [INFO] [stderr] Checking tiny_http v0.6.2 [INFO] [stderr] Checking bitcoin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/api/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/block.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, generate_random_signed_transaction_}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/block.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/block.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/block.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/crypto/hash.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hashable_160` should have an upper camel case name [INFO] [stdout] --> src/crypto/hash.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | pub trait Hashable_160 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Hashable160` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/crypto/merkle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/miner.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::transaction::{Transaction, Mempool, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/miner.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/miner.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use log::{info,debug}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/miner.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::{time, fs}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ring::signature::Ed25519KeyPair` [INFO] [stdout] --> src/miner.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ring::signature::Ed25519KeyPair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/network/message.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StateWitness` and `Transaction` [INFO] [stdout] --> src/network/message.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction,StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/network/message.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/network/message.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Content` and `Header` [INFO] [stdout] --> src/network/worker.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::block::{Block,Header,Content}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MerkleTree` [INFO] [stdout] --> src/network/worker.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::crypto::merkle::{MerkleTree}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair`, `EdDSAParameters`, `KeyPair`, `Signature`, and `VerificationAlgorithm` [INFO] [stdout] --> src/network/worker.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/network/worker.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/network/worker.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | use std::{thread, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction` [INFO] [stdout] --> src/network/worker.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> src/network/worker.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EdDSAParameters` [INFO] [stdout] --> src/transaction.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/transaction.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/transaction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/transaction.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix::Verbatim` [INFO] [stdout] --> src/transaction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::path::Prefix::Verbatim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/transaction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> src/transaction.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/transaction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_integer::Roots` [INFO] [stdout] --> src/transaction.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use num_integer::Roots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `witness` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `input` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `output` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/transaction.rs:204:32 [INFO] [stdout] | [INFO] [stdout] 204 | blockchain: Arc::clone((blockchain)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 204 - blockchain: Arc::clone((blockchain)), [INFO] [stdout] 204 + blockchain: Arc::clone(blockchain), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/transaction.rs:324:19 [INFO] [stdout] | [INFO] [stdout] 324 | if(self.local_address != archival_address[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 324 - if(self.local_address != archival_address[0]) { [INFO] [stdout] 324 + if self.local_address != archival_address[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:549:21 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal` [INFO] [stdout] --> src/accumulator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use hex_literal; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/accumulator.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SignedTransaction`, `StateWitness`, and `Transaction` [INFO] [stdout] --> src/accumulator.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigUint` [INFO] [stdout] --> src/accumulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use num_bigint::{BigInt,BigUint}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/accumulator.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/api/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/block.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, generate_random_signed_transaction_}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/block.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/block.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/block.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/block.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/crypto/hash.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hashable_160` should have an upper camel case name [INFO] [stdout] --> src/crypto/hash.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | pub trait Hashable_160 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Hashable160` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/crypto/hash.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/crypto/merkle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/miner.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::transaction::{Transaction, Mempool, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/miner.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/miner.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use log::{info,debug}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/miner.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::{time, fs}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ring::signature::Ed25519KeyPair` [INFO] [stdout] --> src/miner.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ring::signature::Ed25519KeyPair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/network/message.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StateWitness` and `Transaction` [INFO] [stdout] --> src/network/message.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction,StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/network/message.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/network/message.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Content` and `Header` [INFO] [stdout] --> src/network/worker.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::block::{Block,Header,Content}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MerkleTree` [INFO] [stdout] --> src/network/worker.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::crypto::merkle::{MerkleTree}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair`, `EdDSAParameters`, `KeyPair`, `Signature`, and `VerificationAlgorithm` [INFO] [stdout] --> src/network/worker.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/network/worker.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/network/worker.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | use std::{thread, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction` [INFO] [stdout] --> src/network/worker.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> src/network/worker.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EdDSAParameters` [INFO] [stdout] --> src/transaction.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/transaction.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/transaction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/transaction.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix::Verbatim` [INFO] [stdout] --> src/transaction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::path::Prefix::Verbatim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/transaction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> src/transaction.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/transaction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_integer::Roots` [INFO] [stdout] --> src/transaction.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use num_integer::Roots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `witness` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `input` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `output` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/transaction.rs:204:32 [INFO] [stdout] | [INFO] [stdout] 204 | blockchain: Arc::clone((blockchain)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 204 - blockchain: Arc::clone((blockchain)), [INFO] [stdout] 204 + blockchain: Arc::clone(blockchain), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/transaction.rs:324:19 [INFO] [stdout] | [INFO] [stdout] 324 | if(self.local_address != archival_address[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 324 - if(self.local_address != archival_address[0]) { [INFO] [stdout] 324 + if self.local_address != archival_address[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/transaction.rs:549:21 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `test-utilities` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal` [INFO] [stdout] --> src/accumulator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use hex_literal; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/accumulator.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SignedTransaction`, `StateWitness`, and `Transaction` [INFO] [stdout] --> src/accumulator.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigUint` [INFO] [stdout] --> src/accumulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use num_bigint::{BigInt,BigUint}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/accumulator.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `BufReader` [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/accumulator.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to modules, extern crates, and crates [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/accumulator.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to modules, extern crates, and crates [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/block.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/network/worker.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable_160` [INFO] [stdout] --> src/transaction.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160, Hashable_160}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/block.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/network/worker.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable_160` [INFO] [stdout] --> src/transaction.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160, Hashable_160}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut nonce:u32 = thread_rng().gen(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut timestamp = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards").as_millis(); [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/block.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [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:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut block = generate_random_block_(&genesis_hash); [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/crypto/hash.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [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/block.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut nonce:u32 = thread_rng().gen(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut timestamp = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards").as_millis(); [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/block.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [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:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut block = generate_random_block_(&genesis_hash); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/crypto/merkle.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for i in 0..realHeight { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 95 | for _i in 0..realHeight { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_EVENT` [INFO] [stdout] | [INFO] [stdout] 95 - for i in 0..realHeight { [INFO] [stdout] 95 + for network::server::MAX_EVENT in 0..realHeight { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:134:72 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 134 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, _leaf_size: usize) -> bool { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_EVENT` [INFO] [stdout] | [INFO] [stdout] 134 - pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] 134 + pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, network::server::MAX_EVENT: usize) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/miner.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | for key in mempool.Transactions.keys(){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/miner.rs:271:33 [INFO] [stdout] | [INFO] [stdout] 271 | ... let tip_hash = blockchain.insert(&newBlock); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/crypto/hash.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [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/miner.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/miner.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut mempool = self.mempool.lock().unwrap(); [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/miner.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [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/miner.rs:250:29 [INFO] [stdout] | [INFO] [stdout] 250 | let mut contents = newBlock.Content.content.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] --> src/miner.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/miner.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 253 | let mut mempool = self.mempool.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/crypto/merkle.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for i in 0..realHeight { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 95 | for _i in 0..realHeight { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_EVENT` [INFO] [stdout] | [INFO] [stdout] 95 - for i in 0..realHeight { [INFO] [stdout] 95 + for network::server::MAX_EVENT in 0..realHeight { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:134:72 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 134 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, _leaf_size: usize) -> bool { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_EVENT` [INFO] [stdout] | [INFO] [stdout] 134 - pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] 134 + pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, network::server::MAX_EVENT: usize) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/miner.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | for key in mempool.Transactions.keys(){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/miner.rs:271:33 [INFO] [stdout] | [INFO] [stdout] 271 | ... let tip_hash = blockchain.insert(&newBlock); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/miner.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut mempool = self.mempool.lock().unwrap(); [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/miner.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [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/miner.rs:250:29 [INFO] [stdout] | [INFO] [stdout] 250 | let mut contents = newBlock.Content.content.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] --> src/miner.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/miner.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 253 | let mut mempool = self.mempool.lock().unwrap(); [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/network/worker.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut orphan_buffer:HashMap> = HashMap::new(); // Parent <-> Vec [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orphanbuffer` [INFO] [stdout] --> src/network/worker.rs:147:29 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orphanbuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/network/worker.rs:230:45 [INFO] [stdout] | [INFO] [stdout] 230 | ... let tip_hash = blockchain.insert(&block); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut orphan_buffer:HashMap> = HashMap::new(); // Parent <-> Vec [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orphanbuffer` [INFO] [stdout] --> src/network/worker.rs:147:29 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orphanbuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/network/worker.rs:230:45 [INFO] [stdout] | [INFO] [stdout] 230 | ... let tip_hash = blockchain.insert(&block); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/worker.rs:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | let mut blockchain = self.blockchain.lock().unwrap(); [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/network/worker.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.lock().unwrap(); [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/network/worker.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | let mut hashes = hashes.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] --> src/network/worker.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | let mut blockchain = self.blockchain.lock().unwrap(); [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/network/worker.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | let mut blocks = blocks.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] --> src/network/worker.rs:205:41 [INFO] [stdout] | [INFO] [stdout] 205 | ... let mut contents = block.Content.content.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] --> src/network/worker.rs:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [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/network/worker.rs:271:53 [INFO] [stdout] | [INFO] [stdout] 271 | ... let mut witness = A / (values.2 as u128); [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/network/worker.rs:312:37 [INFO] [stdout] | [INFO] [stdout] 312 | ... let mut contents = orphan.Content.content.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] --> src/network/worker.rs:314:37 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [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/network/worker.rs:315:37 [INFO] [stdout] | [INFO] [stdout] 315 | ... let mut mempool = self.mempool.lock().unwrap(); [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/network/worker.rs:359:49 [INFO] [stdout] | [INFO] [stdout] 359 | ... let mut witness = A / (values.2 as u128); [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/network/worker.rs:389:25 [INFO] [stdout] | [INFO] [stdout] 389 | let mut mempool = self.mempool.lock().unwrap(); [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/network/worker.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | let mut mempool = self.mempool.lock().unwrap(); [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/network/worker.rs:409:25 [INFO] [stdout] | [INFO] [stdout] 409 | let mut hashes = hashes.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] --> src/network/worker.rs:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/network/worker.rs:430:25 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.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] --> src/network/worker.rs:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | let mut blockchain = self.blockchain.lock().unwrap(); [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/network/worker.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.lock().unwrap(); [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/network/worker.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | let mut hashes = hashes.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] --> src/network/worker.rs:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | let mut blockchain = self.blockchain.lock().unwrap(); [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/network/worker.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | let mut blocks = blocks.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] --> src/network/worker.rs:205:41 [INFO] [stdout] | [INFO] [stdout] 205 | ... let mut contents = block.Content.content.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] --> src/network/worker.rs:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [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/network/worker.rs:271:53 [INFO] [stdout] | [INFO] [stdout] 271 | ... let mut witness = A / (values.2 as u128); [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/network/worker.rs:312:37 [INFO] [stdout] | [INFO] [stdout] 312 | ... let mut contents = orphan.Content.content.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] --> src/network/worker.rs:314:37 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [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/network/worker.rs:315:37 [INFO] [stdout] | [INFO] [stdout] 315 | ... let mut mempool = self.mempool.lock().unwrap(); [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/network/worker.rs:359:49 [INFO] [stdout] | [INFO] [stdout] 359 | ... let mut witness = A / (values.2 as u128); [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/network/worker.rs:389:25 [INFO] [stdout] | [INFO] [stdout] 389 | let mut mempool = self.mempool.lock().unwrap(); [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/network/worker.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | let mut mempool = self.mempool.lock().unwrap(); [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/network/worker.rs:409:25 [INFO] [stdout] | [INFO] [stdout] 409 | let mut hashes = hashes.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] --> src/network/worker.rs:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/network/worker.rs:430:25 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.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] --> src/transaction.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut transaction = t.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] --> src/transaction.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut signature = signature.as_ref().to_vec(); [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/transaction.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dest_value` is never read [INFO] [stdout] --> src/transaction.rs:413:25 [INFO] [stdout] | [INFO] [stdout] 413 | let mut dest_value:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transaction.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut transaction = t.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] --> src/transaction.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut signature = signature.as_ref().to_vec(); [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/transaction.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [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/transaction.rs:306:25 [INFO] [stdout] | [INFO] [stdout] 306 | let mut start = i * 20; [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/transaction.rs:307:25 [INFO] [stdout] | [INFO] [stdout] 307 | let mut end = (i + 1) * 20; [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/transaction.rs:310:25 [INFO] [stdout] | [INFO] [stdout] 310 | let mut address: H160 = ::from(addr_u8); [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/transaction.rs:347:25 [INFO] [stdout] | [INFO] [stdout] 347 | let mut witness = A / (values.2 as u128); [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/transaction.rs:376:21 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/transaction.rs:432:21 [INFO] [stdout] | [INFO] [stdout] 432 | let mut num = rng.gen_range(0, other_address.len()); [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/transaction.rs:444:25 [INFO] [stdout] | [INFO] [stdout] 444 | let mut transaction = generate_transaction(&pre_hash, &pre_index, &witness_vec , &out_value, &recp_addr); [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/transaction.rs:451:25 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dest_value` is never read [INFO] [stdout] --> src/transaction.rs:413:25 [INFO] [stdout] | [INFO] [stdout] 413 | let mut dest_value:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transaction.rs:633:9 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [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/transaction.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let mut rand_u32:u32 = rand::thread_rng().gen(); [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/transaction.rs:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | let mut rand_u32_vec = [rand_u32].to_vec(); [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/transaction.rs:638:9 [INFO] [stdout] | [INFO] [stdout] 638 | let mut rand_f32:f32 = rand::thread_rng().gen(); [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/transaction.rs:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | let mut rand_f32_vec = [rand_f32].to_vec(); [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/transaction.rs:640:9 [INFO] [stdout] | [INFO] [stdout] 640 | let mut rand_u128:u128 = rand::thread_rng().gen(); [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/transaction.rs:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | let mut witness = witness{prime_number:rand_u32, witness: rand_u128,}; [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/transaction.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let mut witness_vec = [witness].to_vec(); [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/transaction.rs:644:9 [INFO] [stdout] | [INFO] [stdout] 644 | let mut transaction = generate_transaction(&new_hash_vec,&rand_u32_vec, &witness_vec,&rand_f32_vec,&rand_addr); [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/accumulator.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | let mut f1: BigInt = One::one(); [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/accumulator.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | let mut f1: BigInt = One::one(); [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/accumulator.rs:108:6 [INFO] [stdout] | [INFO] [stdout] 108 | let mut j:u32 = rng.gen_range(2,9); [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/accumulator.rs:111:6 [INFO] [stdout] | [INFO] [stdout] 111 | let mut j:u32 = rng.gen_range(2,7); [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/accumulator.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | let mut prime_set = HashSet::::new(); [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/accumulator.rs:137:7 [INFO] [stdout] | [INFO] [stdout] 137 | let mut j:u32 = rng.gen_range(2, 10); [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/transaction.rs:306:25 [INFO] [stdout] | [INFO] [stdout] 306 | let mut start = i * 20; [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/transaction.rs:307:25 [INFO] [stdout] | [INFO] [stdout] 307 | let mut end = (i + 1) * 20; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file` [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let new_file = OpenOptions::new().write(true).create_new(true).open("ICO.txt"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transaction.rs:310:25 [INFO] [stdout] | [INFO] [stdout] 310 | let mut address: H160 = ::from(addr_u8); [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/transaction.rs:347:25 [INFO] [stdout] | [INFO] [stdout] 347 | let mut witness = A / (values.2 as u128); [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/transaction.rs:376:21 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/transaction.rs:432:21 [INFO] [stdout] | [INFO] [stdout] 432 | let mut num = rng.gen_range(0, other_address.len()); [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/transaction.rs:444:25 [INFO] [stdout] | [INFO] [stdout] 444 | let mut transaction = generate_transaction(&pre_hash, &pre_index, &witness_vec , &out_value, &recp_addr); [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/transaction.rs:451:25 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.lock().unwrap(); [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/main.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut new_blockchain = blockchain::Blockchain::new(); [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/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut new_orphanbuffer = worker::OrphanBuffer::new(); [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/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::Mempool::new(); [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/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::new(); [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/main.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::new(); [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/transaction.rs:633:9 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [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/transaction.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let mut rand_u32:u32 = rand::thread_rng().gen(); [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/transaction.rs:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | let mut rand_u32_vec = [rand_u32].to_vec(); [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/transaction.rs:638:9 [INFO] [stdout] | [INFO] [stdout] 638 | let mut rand_f32:f32 = rand::thread_rng().gen(); [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/transaction.rs:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | let mut rand_f32_vec = [rand_f32].to_vec(); [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/transaction.rs:640:9 [INFO] [stdout] | [INFO] [stdout] 640 | let mut rand_u128:u128 = rand::thread_rng().gen(); [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/transaction.rs:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | let mut witness = witness{prime_number:rand_u32, witness: rand_u128,}; [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/transaction.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let mut witness_vec = [witness].to_vec(); [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/transaction.rs:644:9 [INFO] [stdout] | [INFO] [stdout] 644 | let mut transaction = generate_transaction(&new_hash_vec,&rand_u32_vec, &witness_vec,&rand_f32_vec,&rand_addr); [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/accumulator.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | let mut f1: BigInt = One::one(); [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/accumulator.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | let mut f1: BigInt = One::one(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> src/crypto/merkle.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct MerkleTree { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 17 | root: Option>, [INFO] [stdout] 18 | length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerkleTree` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `local_address` and `local_public_key` are never read [INFO] [stdout] --> src/miner.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Context { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 34 | /// Channel for receiving control signal [INFO] [stdout] 35 | local_address: H160, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | local_public_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Mempool` should have a snake case name [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::Mempool::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `new_mempool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_StateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let stateWitness = Arc::new(Mutex::new(new_StateWitness)); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Accumulator` should have a snake case name [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/main.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut ifArchival = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/accumulator.rs:108:6 [INFO] [stdout] | [INFO] [stdout] 108 | let mut j:u32 = rng.gen_range(2,9); [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/accumulator.rs:111:6 [INFO] [stdout] | [INFO] [stdout] 111 | let mut j:u32 = rng.gen_range(2,7); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/api/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ApiResponse` [INFO] [stdout] 23 | struct ApiResponse { [INFO] [stdout] | ----------- `ApiResponse` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/accumulator.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | let mut prime_set = HashSet::::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `merkleRoot` should have a snake case name [INFO] [stdout] --> src/block.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub merkleRoot: H256, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Header` [INFO] [stdout] 16 | pub struct Header { [INFO] [stdout] | ------ `Header` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Header` [INFO] [stdout] 16 | pub struct Header { [INFO] [stdout] | ------ `Header` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/accumulator.rs:137:7 [INFO] [stdout] | [INFO] [stdout] 137 | let mut j:u32 = rng.gen_range(2, 10); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Content` [INFO] [stdout] 25 | pub struct Content { [INFO] [stdout] | ------- `Content` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Content` [INFO] [stdout] 25 | pub struct Content { [INFO] [stdout] | ------- `Content` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Header` should have a snake case name [INFO] [stdout] --> src/block.rs:31:6 [INFO] [stdout] | [INFO] [stdout] 31 | pub Header: Header, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Content` should have a snake case name [INFO] [stdout] --> src/block.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub Content: Content, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Block` [INFO] [stdout] 30 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Block` [INFO] [stdout] 30 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/block.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/block.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/block.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/block.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub Blocks: HashMap, //H256 - [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut Blocks:HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockLists` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut blockLists = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_lists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let parentHash = self.Blocks.get(&hash).as_ref().unwrap().0.getparent(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_H256` [INFO] [stdout] 14 | pub struct H256([u8; 32]); // big endian u256 [INFO] [stdout] | ---- `H256` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file` [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let new_file = OpenOptions::new().write(true).create_new(true).open("ICO.txt"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_H256` [INFO] [stdout] 14 | pub struct H256([u8; 32]); // big endian u256 [INFO] [stdout] | ---- `H256` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_H160` [INFO] [stdout] 135 | pub struct H160([u8; 20]); [INFO] [stdout] | ---- `H160` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_H160` [INFO] [stdout] 135 | pub struct H160([u8; 20]); [INFO] [stdout] | ---- `H160` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash256` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash160` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut Hash160 = [0; 20]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leafNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut leafNodes = Vec::with_capacity(length); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `leaf_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `childrenNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let mut childrenNodes = leafNodes.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `children_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curLength` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut curLength = childrenNodes.len(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cur_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TreeNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let mut TreeNodes:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tree_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | let leftNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let leftNodeVal = (leftNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `left_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let rightNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | let rightNodeVal = (rightNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `right_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | let parentNodeVal = ::from(digest::digest(&digest::SHA256, &([&leftNodeVal[..], &rightNodeVal[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `parent_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let parentNode = TreeNode{val: parentNodeVal ,left:Some(Box::new(leftNode)),right:Some(Box::new(rightNode))}; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut curNode = self.root.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cur_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut proofVec:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let realIndex = (index + 1) as i32; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let realHeight = self.height; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `real_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oriCenter` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut oriCenter = center; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ori_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let leftNode = curNode.left.as_ref(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let rightNode = curNode.right.as_ref(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn getHeight(mut length:usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut new_blockchain = blockchain::Blockchain::new(); [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/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut new_orphanbuffer = worker::OrphanBuffer::new(); [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/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::Mempool::new(); [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/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::new(); [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/main.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `length` is never read [INFO] [stdout] --> src/crypto/merkle.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct MerkleTree { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 17 | root: Option>, [INFO] [stdout] 18 | length: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MerkleTree` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `local_address` and `local_public_key` are never read [INFO] [stdout] --> src/miner.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Context { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 34 | /// Channel for receiving control signal [INFO] [stdout] 35 | local_address: H160, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | local_public_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Mempool` should have a snake case name [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::Mempool::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `new_mempool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_StateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let stateWitness = Arc::new(Mutex::new(new_StateWitness)); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Accumulator` should have a snake case name [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/main.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut ifArchival = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/crypto/merkle.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 137 | let mut proofVec = Vec::from(proof.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[H256]` does not implement `Clone`, so calling `clone` on `&[H256]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut proofVec = Vec::from(proof.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut realIndex = index + 1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/api/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ApiResponse` [INFO] [stdout] 23 | struct ApiResponse { [INFO] [stdout] | ----------- `ApiResponse` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `merkleRoot` should have a snake case name [INFO] [stdout] --> src/block.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub merkleRoot: H256, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:189:25 [INFO] [stdout] | [INFO] [stdout] 189 | let mut signedTransaction = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/miner.rs:226:29 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/miner.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Header` [INFO] [stdout] 16 | pub struct Header { [INFO] [stdout] | ------ `Header` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/miner.rs:232:25 [INFO] [stdout] | [INFO] [stdout] 232 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/miner.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:252:33 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Header` [INFO] [stdout] 16 | pub struct Header { [INFO] [stdout] | ------ `Header` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Content` [INFO] [stdout] 25 | pub struct Content { [INFO] [stdout] | ------- `Content` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/network/message.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Message` [INFO] [stdout] 8 | pub enum Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Content` [INFO] [stdout] 25 | pub struct Content { [INFO] [stdout] | ------- `Content` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/network/message.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Message` [INFO] [stdout] 8 | pub enum Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Header` should have a snake case name [INFO] [stdout] --> src/block.rs:31:6 [INFO] [stdout] | [INFO] [stdout] 31 | pub Header: Header, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Content` should have a snake case name [INFO] [stdout] --> src/block.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub Content: Content, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Block` [INFO] [stdout] 30 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Block` [INFO] [stdout] 30 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/block.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/block.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/block.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/block.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub Blocks: HashMap, //H256 - [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut Blocks:HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockLists` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut blockLists = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_lists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let parentHash = self.Blocks.get(&hash).as_ref().unwrap().0.getparent(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_H256` [INFO] [stdout] 14 | pub struct H256([u8; 32]); // big endian u256 [INFO] [stdout] | ---- `H256` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_H256` [INFO] [stdout] 14 | pub struct H256([u8; 32]); // big endian u256 [INFO] [stdout] | ---- `H256` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_H160` [INFO] [stdout] 135 | pub struct H160([u8; 20]); [INFO] [stdout] | ---- `H160` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `HashMap` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub HashMap: HashMap>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOrphanBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_orphan_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/crypto/hash.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(Eq, PartialEq, Serialize, Deserialize, Clone, Hash, Default, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_H160` [INFO] [stdout] 135 | pub struct H160([u8; 20]); [INFO] [stdout] | ---- `H160` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash256` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut Blocks = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash160` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut Hash160 = [0; 20]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Parent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn remove(&mut self, Hash:&H256) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isParentIn` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_parent_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leafNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut leafNodes = Vec::with_capacity(length); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `leaf_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `childrenNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let mut childrenNodes = leafNodes.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `children_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curLength` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut curLength = childrenNodes.len(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cur_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TreeNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let mut TreeNodes:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tree_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | ifArchival: bool [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | let leftNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let leftNodeVal = (leftNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `left_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let rightNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | let mut notContainedBlocks = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | let rightNodeVal = (rightNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `right_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | let parentNodeVal = ::from(digest::digest(&digest::SHA256, &([&leftNodeVal[..], &rightNodeVal[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `parent_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let parentNode = TreeNode{val: parentNodeVal ,left:Some(Box::new(leftNode)),right:Some(Box::new(rightNode))}; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphanParent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:189:29 [INFO] [stdout] | [INFO] [stdout] 189 | let mut newlyOrphanParent = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphan_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut curNode = self.root.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cur_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyProcessedBlockHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | let mut newlyProcessedBlockHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_processed_block_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut proofVec:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let realIndex = (index + 1) as i32; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let realHeight = self.height; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `real_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:266:49 [INFO] [stdout] | [INFO] [stdout] 266 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oriCenter` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut oriCenter = center; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ori_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphans` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:293:45 [INFO] [stdout] | [INFO] [stdout] 293 | ... let mut newlyOrphans = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let leftNode = curNode.left.as_ref(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let rightNode = curNode.right.as_ref(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:340:49 [INFO] [stdout] | [INFO] [stdout] 340 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn getHeight(mut length:usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:354:45 [INFO] [stdout] | [INFO] [stdout] 354 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:390:29 [INFO] [stdout] | [INFO] [stdout] 390 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedTransactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 408 | let mut notContainedTransactions = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:425:39 [INFO] [stdout] | [INFO] [stdout] 425 | Message::Transactions(Transactions) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:429:29 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:430:29 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addedTransactionHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:431:29 [INFO] [stdout] | [INFO] [stdout] 431 | let mut addedTransactionHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `added_transaction_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 433 | for Transaction in Transactions.iter(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newState` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:43 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newProof` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:53 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:457:33 [INFO] [stdout] | [INFO] [stdout] 457 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_witness` [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ------- `witness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_witness` [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ------- `witness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `prevTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub prevTransaction: H256, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `preOutputIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub preOutputIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `pre_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_input` [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ----- `input` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_input` [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ----- `input` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub recpAddress: H160, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_output` [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ------ `output` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_output` [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ------ `output` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub Input: Vec, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Output` should have a snake case name [INFO] [stdout] --> src/transaction.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub Output: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Transaction` [INFO] [stdout] 53 | pub struct Transaction { [INFO] [stdout] | ----------- `Transaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Transaction` [INFO] [stdout] 53 | pub struct Transaction { [INFO] [stdout] | ----------- `Transaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub publicKey: Vec, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_SignedTransaction` [INFO] [stdout] 67 | pub struct SignedTransaction { [INFO] [stdout] | ----------------- `SignedTransaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_SignedTransaction` [INFO] [stdout] 67 | pub struct SignedTransaction { [INFO] [stdout] | ----------------- `SignedTransaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verifySignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn verifySignedTransaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `verify_signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Transactions` should have a snake case name [INFO] [stdout] --> src/transaction.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub Transactions: HashMap, // hash <-> transaction(signed) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Mempool` [INFO] [stdout] 130 | pub struct Mempool { [INFO] [stdout] | ------- `Mempool` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Mempool` [INFO] [stdout] 130 | pub struct Mempool { [INFO] [stdout] | ------- `Mempool` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateMempool` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_mempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:37 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | for signedTransaction in SignedTransaction{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readADD` should have a snake case name [INFO] [stdout] --> src/transaction.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let mut readADD: bool = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ICO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | let mut ICO: bool = false; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `ico` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/transaction.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myStateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | let mut myStateWitness = Vec::<(H256, u32, u32, u128)>::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `my_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:376:25 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Iteration` should have a snake case name [INFO] [stdout] --> src/transaction.rs:407:21 [INFO] [stdout] | [INFO] [stdout] 407 | for Iteration in myStateWitness.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:446:25 [INFO] [stdout] | [INFO] [stdout] 446 | let SignedTransaction = SignedTransaction::new(&transaction, &signature, &self.key_pair.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:451:29 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:472:33 [INFO] [stdout] | [INFO] [stdout] 472 | let mut txHash = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tx_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pre_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:49 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `pre_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outValue` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:93 [INFO] [stdout] | [INFO] [stdout] 503 | ...&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `out_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:113 [INFO] [stdout] | [INFO] [stdout] 503 | ...c, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut inputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `input_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let mut outputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `output_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:552:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub States: HashMap<(H256, u32),(f32, H160, u32, u128)>, // (prev TX Hash, prev Output Index) <-> (Output Value, Recipient Addr, Pri... [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | pub AccumulatorProof: HashMap, // Block Hash <-> Accumulator [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_StateWitness` [INFO] [stdout] 550 | pub struct StateWitness { [INFO] [stdout] | ------------ `StateWitness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:549:21 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_StateWitness` [INFO] [stdout] 550 | pub struct StateWitness { [INFO] [stdout] | ------------ `StateWitness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ifNotDoubleSpent` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:12 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `if_not_double_spent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:37 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:57 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | let AccumulatorProof = self.AccumulatorProof.get(&Block_Hash).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:588:12 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn addStates(&mut self, transaction_hash: H256, output_index: u32, output_value: f32, recp_address: H160, prime_number: u32, witn... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deleteStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:594:12 [INFO] [stdout] | [INFO] [stdout] 594 | pub fn deleteStates(&mut self, transaction_hash: H256, output_index: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `delete_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateAccumulator` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:12 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:41 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:59 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAllStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:606:12 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn getAllStates(&self) -> Vec<(H256, u32, f32, H160, u32, u128)>{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_all_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:608:13 [INFO] [stdout] | [INFO] [stdout] 608 | let States = self.States.clone(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getNewProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:615:12 [INFO] [stdout] | [INFO] [stdout] 615 | pub fn getNewProof(&self, block_hash: &H256) -> Vec<(H256,u128)> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:617:13 [INFO] [stdout] | [INFO] [stdout] 617 | let AccumulatorProof = self.AccumulatorProof.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rand_addr_H160` should have a snake case name [INFO] [stdout] --> src/transaction.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rand_addr_h160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:647:9 [INFO] [stdout] | [INFO] [stdout] 647 | let SignedTransaction = SignedTransaction::new(&transaction,&signature,&key.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/crypto/merkle.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 137 | let mut proofVec = Vec::from(proof.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[H256]` does not implement `Clone`, so calling `clone` on `&[H256]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut proofVec = Vec::from(proof.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut realIndex = index + 1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:189:25 [INFO] [stdout] | [INFO] [stdout] 189 | let mut signedTransaction = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/miner.rs:226:29 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/miner.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/miner.rs:232:25 [INFO] [stdout] | [INFO] [stdout] 232 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/miner.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:252:33 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/network/message.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Message` [INFO] [stdout] 8 | pub enum Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/network/message.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Message` [INFO] [stdout] 8 | pub enum Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `HashMap` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub HashMap: HashMap>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOrphanBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_orphan_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut Blocks = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Parent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn remove(&mut self, Hash:&H256) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isParentIn` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_parent_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | ifArchival: bool [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | let mut notContainedBlocks = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphanParent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:189:29 [INFO] [stdout] | [INFO] [stdout] 189 | let mut newlyOrphanParent = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphan_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyProcessedBlockHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | let mut newlyProcessedBlockHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_processed_block_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:266:49 [INFO] [stdout] | [INFO] [stdout] 266 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphans` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:293:45 [INFO] [stdout] | [INFO] [stdout] 293 | ... let mut newlyOrphans = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:340:49 [INFO] [stdout] | [INFO] [stdout] 340 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:354:45 [INFO] [stdout] | [INFO] [stdout] 354 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:390:29 [INFO] [stdout] | [INFO] [stdout] 390 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedTransactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 408 | let mut notContainedTransactions = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:425:39 [INFO] [stdout] | [INFO] [stdout] 425 | Message::Transactions(Transactions) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:429:29 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:430:29 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addedTransactionHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:431:29 [INFO] [stdout] | [INFO] [stdout] 431 | let mut addedTransactionHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `added_transaction_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 433 | for Transaction in Transactions.iter(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newState` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:43 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newProof` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:53 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:457:33 [INFO] [stdout] | [INFO] [stdout] 457 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_witness` [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ------- `witness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_witness` [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ------- `witness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `prevTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub prevTransaction: H256, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `preOutputIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub preOutputIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `pre_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_input` [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ----- `input` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_input` [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ----- `input` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub recpAddress: H160, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_output` [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ------ `output` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Serialize, Deserialize, Debug, Default, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_output` [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ------ `output` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub Input: Vec, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Output` should have a snake case name [INFO] [stdout] --> src/transaction.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub Output: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Transaction` [INFO] [stdout] 53 | pub struct Transaction { [INFO] [stdout] | ----------- `Transaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Transaction` [INFO] [stdout] 53 | pub struct Transaction { [INFO] [stdout] | ----------- `Transaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub publicKey: Vec, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_SignedTransaction` [INFO] [stdout] 67 | pub struct SignedTransaction { [INFO] [stdout] | ----------------- `SignedTransaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_SignedTransaction` [INFO] [stdout] 67 | pub struct SignedTransaction { [INFO] [stdout] | ----------------- `SignedTransaction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verifySignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn verifySignedTransaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `verify_signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Transactions` should have a snake case name [INFO] [stdout] --> src/transaction.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub Transactions: HashMap, // hash <-> transaction(signed) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Mempool` [INFO] [stdout] 130 | pub struct Mempool { [INFO] [stdout] | ------- `Mempool` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Mempool` [INFO] [stdout] 130 | pub struct Mempool { [INFO] [stdout] | ------- `Mempool` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateMempool` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_mempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:37 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | for signedTransaction in SignedTransaction{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readADD` should have a snake case name [INFO] [stdout] --> src/transaction.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let mut readADD: bool = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ICO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | let mut ICO: bool = false; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `ico` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/transaction.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myStateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | let mut myStateWitness = Vec::<(H256, u32, u32, u128)>::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `my_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:376:25 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Iteration` should have a snake case name [INFO] [stdout] --> src/transaction.rs:407:21 [INFO] [stdout] | [INFO] [stdout] 407 | for Iteration in myStateWitness.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:446:25 [INFO] [stdout] | [INFO] [stdout] 446 | let SignedTransaction = SignedTransaction::new(&transaction, &signature, &self.key_pair.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:451:29 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:472:33 [INFO] [stdout] | [INFO] [stdout] 472 | let mut txHash = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tx_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pre_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:49 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `pre_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outValue` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:93 [INFO] [stdout] | [INFO] [stdout] 503 | ...&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `out_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:113 [INFO] [stdout] | [INFO] [stdout] 503 | ...c, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut inputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `input_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let mut outputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `output_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:552:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub States: HashMap<(H256, u32),(f32, H160, u32, u128)>, // (prev TX Hash, prev Output Index) <-> (Output Value, Recipient Addr, Pri... [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | pub AccumulatorProof: HashMap, // Block Hash <-> Accumulator [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:549:10 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_StateWitness` [INFO] [stdout] 550 | pub struct StateWitness { [INFO] [stdout] | ------------ `StateWitness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/transaction.rs:549:21 [INFO] [stdout] | [INFO] [stdout] 549 | #[derive(Serialize, Deserialize, Debug, Default, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_StateWitness` [INFO] [stdout] 550 | pub struct StateWitness { [INFO] [stdout] | ------------ `StateWitness` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ifNotDoubleSpent` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:12 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `if_not_double_spent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:37 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:57 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | let AccumulatorProof = self.AccumulatorProof.get(&Block_Hash).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:588:12 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn addStates(&mut self, transaction_hash: H256, output_index: u32, output_value: f32, recp_address: H160, prime_number: u32, witn... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deleteStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:594:12 [INFO] [stdout] | [INFO] [stdout] 594 | pub fn deleteStates(&mut self, transaction_hash: H256, output_index: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `delete_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateAccumulator` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:12 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:41 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:59 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAllStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:606:12 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn getAllStates(&self) -> Vec<(H256, u32, f32, H160, u32, u128)>{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_all_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:608:13 [INFO] [stdout] | [INFO] [stdout] 608 | let States = self.States.clone(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getNewProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:615:12 [INFO] [stdout] | [INFO] [stdout] 615 | pub fn getNewProof(&self, block_hash: &H256) -> Vec<(H256,u128)> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:617:13 [INFO] [stdout] | [INFO] [stdout] 617 | let AccumulatorProof = self.AccumulatorProof.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rand_addr_H160` should have a snake case name [INFO] [stdout] --> src/transaction.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rand_addr_h160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:647:9 [INFO] [stdout] | [INFO] [stdout] 647 | let SignedTransaction = SignedTransaction::new(&transaction,&signature,&key.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.38s [INFO] running `Command { std: "docker" "inspect" "8944195011ced5133ef4c4eb94c33b2ed7450b956e93366c4a328f4516b65792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8944195011ced5133ef4c4eb94c33b2ed7450b956e93366c4a328f4516b65792", kill_on_drop: false }` [INFO] [stdout] 8944195011ced5133ef4c4eb94c33b2ed7450b956e93366c4a328f4516b65792