[INFO] cloning repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wildonion/ayoub" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fayoub", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fayoub'... [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached repository https://github.com/wildonion/ayoub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d089b9005b7ae8e717af793c0a9577f5e2222ae6 [INFO] checking wildonion/ayoub against try#7b91cbfbcf4c73b95e666e0f8972d2f7262ce27e for pr-99880 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fayoub" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wildonion/ayoub on toolchain 7b91cbfbcf4c73b95e666e0f8972d2f7262ce27e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b91cbfbcf4c73b95e666e0f8972d2f7262ce27e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wildonion/ayoub [INFO] finished tweaking git repo https://github.com/wildonion/ayoub [INFO] tweaked toml for git repo https://github.com/wildonion/ayoub written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/wildonion/ayoub already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b91cbfbcf4c73b95e666e0f8972d2f7262ce27e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-11/source/PaaS/src/runtime/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-11/source/Cargo.toml [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+7b91cbfbcf4c73b95e666e0f8972d2f7262ce27e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5e07317bb140cf6d906ebb644df125cf1e353d9abfb11d4363bff6dcde7a216a [INFO] running `Command { std: "docker" "start" "-a" "5e07317bb140cf6d906ebb644df125cf1e353d9abfb11d4363bff6dcde7a216a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e07317bb140cf6d906ebb644df125cf1e353d9abfb11d4363bff6dcde7a216a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e07317bb140cf6d906ebb644df125cf1e353d9abfb11d4363bff6dcde7a216a", kill_on_drop: false }` [INFO] [stdout] 5e07317bb140cf6d906ebb644df125cf1e353d9abfb11d4363bff6dcde7a216a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+7b91cbfbcf4c73b95e666e0f8972d2f7262ce27e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 927476e5ad4c643ad18790b9a02bd79159abf7fb60702c2181a35f7471c34e08 [INFO] running `Command { std: "docker" "start" "-a" "927476e5ad4c643ad18790b9a02bd79159abf7fb60702c2181a35f7471c34e08", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/PaaS/src/runtime/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Compiling proc-macro2 v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.140 [INFO] [stderr] Compiling serde v1.0.140 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Compiling rustls v0.20.6 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.82 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Checking local-waker v0.1.3 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling bumpalo v3.10.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling firestorm v0.5.1 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling wasm-bindgen v0.2.82 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking data-encoding v2.3.2 [INFO] [stderr] Checking either v1.7.0 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking tracing-core v0.1.28 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking rustls-pemfile v1.0.0 [INFO] [stderr] Checking pem v1.1.0 [INFO] [stderr] Checking rustls-pemfile v0.3.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking actix-utils v3.0.0 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking blake2b_simd v1.0.0 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking os_info v3.4.0 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking rust-argon2 v1.0.0 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking time v0.3.11 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking listenfd v1.0.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking brotli v3.3.4 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking sha1 v0.10.1 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking md-5 v0.10.1 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking pbkdf2 v0.10.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling zstd-sys v2.0.1+zstd.1.5.2 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking bcrypt v0.1.6 [INFO] [stderr] Checking webpki v0.22.0 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking webpki-roots v0.22.4 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.82 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.82 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling actix_derive v0.6.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.82 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking js-sys v0.3.59 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking local-channel v0.1.3 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking web-sys v0.3.59 [INFO] [stderr] Checking bytes v1.2.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v1.1.2 [INFO] [stderr] Checking serde_bytes v0.11.6 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking bytestring v1.1.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Checking jsonwebtoken v8.1.1 [INFO] [stderr] Checking bson v2.3.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking actix-router v0.5.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling actix-web-codegen v4.0.1 [INFO] [stderr] Checking borsh v0.9.3 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking actix-rt v2.7.0 [INFO] [stderr] Checking tokio-rustls v0.23.4 [INFO] [stderr] Checking trust-dns-proto v0.21.2 [INFO] [stderr] Checking rafael v0.1.0 (/opt/rustwide/workdir/PaaS/src/runtime) [INFO] [stderr] Checking tests v0.1.0 (/opt/rustwide/workdir/tests) [INFO] [stdout] warning: unused imports: `collections::HashMap`, `iter::Cloned` [INFO] [stdout] --> tests/src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{collections::HashMap, sync::{Arc, Mutex}, iter::Cloned}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorshDeserialize`, `BorshSerialize` [INFO] [stdout] --> tests/src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use borsh::{BorshDeserialize, BorshSerialize}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> tests/src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> tests/src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> tests/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking actix-server v2.1.1 [INFO] [stdout] warning: variable `a` is assigned to, but never used [INFO] [stdout] --> tests/src/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut a = &var_a; //-- & is a pointer with a valid lifetime to the location of var_a type and it contains the address and the data ... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_a` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `b` is assigned to, but never used [INFO] [stdout] --> tests/src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut b = &var_b; //-- & is a pointer with a valid lifetime to the location of var_b type and it contains the address and the data ... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_b` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `iter::Cloned` [INFO] [stdout] --> tests/src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{collections::HashMap, sync::{Arc, Mutex}, iter::Cloned}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> tests/src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | a = &var_b; //-- pointer of var_a must points to the location of var_b and after that it can have the data inside var_b [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> tests/src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | b = &var_a; //-- pointer of var_b must points to the location of var_a and after that it can have the data inside var_a [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cloned_name` [INFO] [stdout] --> tests/src/main.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let cloned_name = name.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloned_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorshDeserialize`, `BorshSerialize` [INFO] [stdout] --> tests/src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use borsh::{BorshDeserialize, BorshSerialize}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> tests/src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> tests/src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> tests/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `a` is assigned to, but never used [INFO] [stdout] --> tests/src/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut a = &var_a; //-- & is a pointer with a valid lifetime to the location of var_a type and it contains the address and the data ... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_a` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `b` is assigned to, but never used [INFO] [stdout] --> tests/src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut b = &var_b; //-- & is a pointer with a valid lifetime to the location of var_b type and it contains the address and the data ... [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_b` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> tests/src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | a = &var_b; //-- pointer of var_a must points to the location of var_b and after that it can have the data inside var_b [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> tests/src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | b = &var_a; //-- pointer of var_b must points to the location of var_a and after that it can have the data inside var_a [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cloned_name` [INFO] [stdout] --> tests/src/main.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let cloned_name = name.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloned_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorshDeserialize`, `BorshSerialize` [INFO] [stdout] --> PaaS/src/runtime/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use borsh::{BorshSerialize, BorshDeserialize}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc as std_mpsc` [INFO] [stdout] --> PaaS/src/runtime/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::mpsc as std_mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorshDeserialize`, `BorshSerialize` [INFO] [stdout] --> PaaS/src/runtime/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use borsh::{BorshSerialize, BorshDeserialize}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc as std_mpsc` [INFO] [stdout] --> PaaS/src/runtime/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::mpsc as std_mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking actix v0.13.0 [INFO] [stderr] Checking actix-codec v0.5.0 [INFO] [stderr] Checking trust-dns-resolver v0.21.2 [INFO] [stderr] Checking mongodb v2.3.0 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking actix-http v3.2.1 [INFO] [stderr] Checking actix-web v4.1.0 [INFO] [stderr] Checking hyper-rustls v0.23.0 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking coiniXerr v0.1.0 (/opt/rustwide/workdir/coiniXerr) [INFO] [stdout] warning: crate `coiniXerr` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `coini_xerr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `coiniXerr` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `coini_xerr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> coiniXerr/src/main.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> coiniXerr/src/main.rs:62:33 [INFO] [stdout] | [INFO] [stdout] 62 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::*` [INFO] [stdout] --> coiniXerr/src/main.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | use actix::{*, prelude::*}; //-- loading actix actors and handlers for validator actor's threads communication using their address and de... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> coiniXerr/src/main.rs:65:82 [INFO] [stdout] | [INFO] [stdout] 65 | use actix_web::{http::StatusCode, App, HttpServer, HttpRequest, middleware, web, get, post, Error, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Communicate`, `Contract` [INFO] [stdout] --> coiniXerr/src/main.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | use crate::actors::{parathread::{Parachain, Communicate}, peer::{Validator, Contract}}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Staker` [INFO] [stdout] --> coiniXerr/src/main.rs:69:78 [INFO] [stdout] | [INFO] [stdout] 69 | use crate::schemas::{Transaction, RuntimeInfo, MetaData, Block, Slot, Chain, Staker}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::peer` [INFO] [stdout] --> coiniXerr/src/actors/parathread.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::peer; //-- super is the root of the current directory which is actors directory contains parathread.rs and peer.rs crates [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/consensus/governance.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/contract/token.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/codec/encoder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/codec/decoder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::*` [INFO] [stdout] --> coiniXerr/src/main.rs:64:16 [INFO] [stdout] | [INFO] [stdout] 64 | use actix::{*, prelude::*}; //-- loading actix actors and handlers for validator actor's threads communication using their address and de... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> coiniXerr/src/main.rs:65:82 [INFO] [stdout] | [INFO] [stdout] 65 | use actix_web::{http::StatusCode, App, HttpServer, HttpRequest, middleware, web, get, post, Error, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Communicate`, `Contract` [INFO] [stdout] --> coiniXerr/src/main.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | use crate::actors::{parathread::{Parachain, Communicate}, peer::{Validator, Contract}}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Staker` [INFO] [stdout] --> coiniXerr/src/main.rs:69:78 [INFO] [stdout] | [INFO] [stdout] 69 | use crate::schemas::{Transaction, RuntimeInfo, MetaData, Block, Slot, Chain, Staker}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::peer` [INFO] [stdout] --> coiniXerr/src/actors/parathread.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::peer; //-- super is the root of the current directory which is actors directory contains parathread.rs and peer.rs crates [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/consensus/governance.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/contract/token.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/codec/encoder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> coiniXerr/src/engine/codec/decoder.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::*; // loading all defined crates, structs and functions from the root crate which is lib.rs in our case [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte_name` [INFO] [stdout] --> coiniXerr/src/main.rs:265:29 [INFO] [stdout] | [INFO] [stdout] 265 | let byte_name = Ok::<&[u8], String>(b"wildonion"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_byte_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deserialized_transaction_union` [INFO] [stdout] --> coiniXerr/src/main.rs:290:25 [INFO] [stdout] | [INFO] [stdout] 290 | ... let deserialized_transaction_union = Transaction::new(&transaction_buffer_bytes[0..size]).unwrap(); //-- decoding process of incomi... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deserialized_transaction_union` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_serialized_into_vec_bytes_using_serede` [INFO] [stdout] --> coiniXerr/src/main.rs:293:29 [INFO] [stdout] | [INFO] [stdout] 293 | let mut transaction_serialized_into_vec_bytes_using_serede = serde_json::to_vec(&deserialized_transaction_serde).unwr... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_serialized_into_vec_bytes_using_serede` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_serialized_into_vec_bytes_using_borsh` [INFO] [stdout] --> coiniXerr/src/main.rs:294:29 [INFO] [stdout] | [INFO] [stdout] 294 | let mut transaction_serialized_into_vec_bytes_using_borsh = deserialized_transaction_borsh.try_to_vec().unwrap(); //-... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_serialized_into_vec_bytes_using_borsh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_as_mut_slice` [INFO] [stdout] --> coiniXerr/src/main.rs:321:33 [INFO] [stdout] | [INFO] [stdout] 321 | ...t mut utf8_bytes_using_as_mut_slice = signed_transaction_serialized_into_vec_bytes_using_borsh.as_mut_slice(); //-- converting Vec... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_as_mut_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_casting` [INFO] [stdout] --> coiniXerr/src/main.rs:322:29 [INFO] [stdout] | [INFO] [stdout] 322 | ... let utf8_bytes_using_casting: &[u8] = &signed_transaction_serialized_into_vec_bytes_using_borsh; //-- since the Vec will be coe... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_casting` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> coiniXerr/src/main.rs:355:21 [INFO] [stdout] | [INFO] [stdout] 355 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment` [INFO] [stdout] --> coiniXerr/src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let environment = env::var("ENVIRONMENT").expect("⚠️ no environment variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simd_sender` [INFO] [stdout] --> coiniXerr/src/main.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | let (simd_sender, mut simd_receiver) = mpsc::channel::(buffer_size); //-- defining sender and receiver of the simd ops [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simd_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simd_receiver` [INFO] [stdout] --> coiniXerr/src/main.rs:138:27 [INFO] [stdout] | [INFO] [stdout] 138 | let (simd_sender, mut simd_receiver) = mpsc::channel::(buffer_size); //-- defining sender and receiver of the simd ops [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simd_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_parachain_addr` [INFO] [stdout] --> coiniXerr/src/main.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let first_parachain_addr = parachain.clone().start(); //-- building a new parachain actor - cloning (making a deep copy of) the parac... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_parachain_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_parachain_addr` [INFO] [stdout] --> coiniXerr/src/main.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let second_parachain_addr = second_parachain.clone().start(); //-- building a new parachain actor - cloning (making a deep copy of) t... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_parachain_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cloned_arc_mutex_validator_addr` [INFO] [stdout] --> coiniXerr/src/main.rs:253:87 [INFO] [stdout] | [INFO] [stdout] 253 | ...ct, cloned_arc_mutex_validator_addr)) = stream_receiver.recv().await.take(){ //-- waiting for the stream, the generated uuid of the ru... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloned_arc_mutex_validator_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ttype` [INFO] [stdout] --> coiniXerr/src/main.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | let ttype = 0xFF; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ttype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ttype` [INFO] [stdout] --> coiniXerr/src/main.rs:400:17 [INFO] [stdout] | [INFO] [stdout] 400 | let ttype = 0x02; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ttype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ttype` [INFO] [stdout] --> coiniXerr/src/main.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | let ttype = 0x03; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ttype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last` [INFO] [stdout] --> coiniXerr/src/main.rs:418:28 [INFO] [stdout] | [INFO] [stdout] 418 | let (prev, last) = { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_last` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `merkle_root` [INFO] [stdout] --> coiniXerr/src/main.rs:426:22 [INFO] [stdout] | [INFO] [stdout] 426 | ... if let (Some(merkle_root), Some(block_hash)) = (current_block.clone().merkle_root, current_block.clone().hash){ //-- checking the b... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_merkle_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> coiniXerr/src/main.rs:426:41 [INFO] [stdout] | [INFO] [stdout] 426 | ... if let (Some(merkle_root), Some(block_hash)) = (current_block.clone().merkle_root, current_block.clone().hash){ //-- checking the b... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> coiniXerr/src/schemas.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn BoundTypeToTrait(name: Wildonion) where Wildonion: Void + 'static{ //-- name param lifetime will be valid as long as the receiver ... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint_address` [INFO] [stdout] --> coiniXerr/src/actors/peer.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | ... let mint_address: Self::TokenAddress = self.recent_transaction.as_ref().unwrap().from_address.clone(); //-- cloning the from_addres... [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `act` [INFO] [stdout] --> coiniXerr/src/actors/peer.rs:87:52 [INFO] [stdout] | [INFO] [stdout] 87 | ctx.run_later(Duration::new(0, 100), move |act, _| { //-- wait 100 nanoseconds [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_act` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> coiniXerr/src/actors/peer.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let addr = ctx.address(); //-- getting the address of the this validator actor [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> coiniXerr/src/actors/parathread.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let addr = ctx.address(); //-- getting the address of the this parachain actor [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> coiniXerr/src/engine/consensus/pos.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn decode(block: Option) -> bool{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `boxed_array` [INFO] [stdout] --> coiniXerr/src/utils.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let boxed_array: Box<[u8; 4]> = match boxed_slice.try_into() { //-- Boxing u8 with size 4 cause our input number is 32 bits which is ... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_boxed_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signed_transaction_serialized_into_bytes` [INFO] [stdout] --> coiniXerr/src/apis/rest/wallet.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let signed_transaction_serialized_into_bytes: &[u8] = unsafe { //-- encoding process of new transaction by building the &[u8] usi... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signed_transaction_serialized_into_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte_name` [INFO] [stdout] --> coiniXerr/src/main.rs:265:29 [INFO] [stdout] | [INFO] [stdout] 265 | let byte_name = Ok::<&[u8], String>(b"wildonion"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_byte_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deserialized_transaction_union` [INFO] [stdout] --> coiniXerr/src/main.rs:290:25 [INFO] [stdout] | [INFO] [stdout] 290 | ... let deserialized_transaction_union = Transaction::new(&transaction_buffer_bytes[0..size]).unwrap(); //-- decoding process of incomi... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deserialized_transaction_union` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_serialized_into_vec_bytes_using_serede` [INFO] [stdout] --> coiniXerr/src/main.rs:293:29 [INFO] [stdout] | [INFO] [stdout] 293 | let mut transaction_serialized_into_vec_bytes_using_serede = serde_json::to_vec(&deserialized_transaction_serde).unwr... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_serialized_into_vec_bytes_using_serede` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transaction_serialized_into_vec_bytes_using_borsh` [INFO] [stdout] --> coiniXerr/src/main.rs:294:29 [INFO] [stdout] | [INFO] [stdout] 294 | let mut transaction_serialized_into_vec_bytes_using_borsh = deserialized_transaction_borsh.try_to_vec().unwrap(); //-... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_serialized_into_vec_bytes_using_borsh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_as_mut_slice` [INFO] [stdout] --> coiniXerr/src/main.rs:321:33 [INFO] [stdout] | [INFO] [stdout] 321 | ...t mut utf8_bytes_using_as_mut_slice = signed_transaction_serialized_into_vec_bytes_using_borsh.as_mut_slice(); //-- converting Vec... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_as_mut_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_casting` [INFO] [stdout] --> coiniXerr/src/main.rs:322:29 [INFO] [stdout] | [INFO] [stdout] 322 | ... let utf8_bytes_using_casting: &[u8] = &signed_transaction_serialized_into_vec_bytes_using_borsh; //-- since the Vec will be coe... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_casting` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> coiniXerr/src/main.rs:355:21 [INFO] [stdout] | [INFO] [stdout] 355 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment` [INFO] [stdout] --> coiniXerr/src/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let environment = env::var("ENVIRONMENT").expect("⚠️ no environment variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simd_sender` [INFO] [stdout] --> coiniXerr/src/main.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | let (simd_sender, mut simd_receiver) = mpsc::channel::(buffer_size); //-- defining sender and receiver of the simd ops [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simd_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simd_receiver` [INFO] [stdout] --> coiniXerr/src/main.rs:138:27 [INFO] [stdout] | [INFO] [stdout] 138 | let (simd_sender, mut simd_receiver) = mpsc::channel::(buffer_size); //-- defining sender and receiver of the simd ops [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simd_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_parachain_addr` [INFO] [stdout] --> coiniXerr/src/main.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | let first_parachain_addr = parachain.clone().start(); //-- building a new parachain actor - cloning (making a deep copy of) the parac... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_parachain_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_parachain_addr` [INFO] [stdout] --> coiniXerr/src/main.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let second_parachain_addr = second_parachain.clone().start(); //-- building a new parachain actor - cloning (making a deep copy of) t... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_parachain_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cloned_arc_mutex_validator_addr` [INFO] [stdout] --> coiniXerr/src/main.rs:253:87 [INFO] [stdout] | [INFO] [stdout] 253 | ...ct, cloned_arc_mutex_validator_addr)) = stream_receiver.recv().await.take(){ //-- waiting for the stream, the generated uuid of the ru... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloned_arc_mutex_validator_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ttype` [INFO] [stdout] --> coiniXerr/src/main.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | let ttype = 0xFF; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ttype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ttype` [INFO] [stdout] --> coiniXerr/src/main.rs:400:17 [INFO] [stdout] | [INFO] [stdout] 400 | let ttype = 0x02; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ttype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ttype` [INFO] [stdout] --> coiniXerr/src/main.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | let ttype = 0x03; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ttype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last` [INFO] [stdout] --> coiniXerr/src/main.rs:418:28 [INFO] [stdout] | [INFO] [stdout] 418 | let (prev, last) = { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_last` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `merkle_root` [INFO] [stdout] --> coiniXerr/src/main.rs:426:22 [INFO] [stdout] | [INFO] [stdout] 426 | ... if let (Some(merkle_root), Some(block_hash)) = (current_block.clone().merkle_root, current_block.clone().hash){ //-- checking the b... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_merkle_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> coiniXerr/src/main.rs:426:41 [INFO] [stdout] | [INFO] [stdout] 426 | ... if let (Some(merkle_root), Some(block_hash)) = (current_block.clone().merkle_root, current_block.clone().hash){ //-- checking the b... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> coiniXerr/src/schemas.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn BoundTypeToTrait(name: Wildonion) where Wildonion: Void + 'static{ //-- name param lifetime will be valid as long as the receiver ... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint_address` [INFO] [stdout] --> coiniXerr/src/actors/peer.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | ... let mint_address: Self::TokenAddress = self.recent_transaction.as_ref().unwrap().from_address.clone(); //-- cloning the from_addres... [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mint_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `act` [INFO] [stdout] --> coiniXerr/src/actors/peer.rs:87:52 [INFO] [stdout] | [INFO] [stdout] 87 | ctx.run_later(Duration::new(0, 100), move |act, _| { //-- wait 100 nanoseconds [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_act` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> coiniXerr/src/actors/peer.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let addr = ctx.address(); //-- getting the address of the this validator actor [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> coiniXerr/src/actors/parathread.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let addr = ctx.address(); //-- getting the address of the this parachain actor [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> coiniXerr/src/engine/consensus/pos.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn decode(block: Option) -> bool{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `boxed_array` [INFO] [stdout] --> coiniXerr/src/utils.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let boxed_array: Box<[u8; 4]> = match boxed_slice.try_into() { //-- Boxing u8 with size 4 cause our input number is 32 bits which is ... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_boxed_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signed_transaction_serialized_into_bytes` [INFO] [stdout] --> coiniXerr/src/apis/rest/wallet.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let signed_transaction_serialized_into_bytes: &[u8] = unsafe { //-- encoding process of new transaction by building the &[u8] usi... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signed_transaction_serialized_into_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> coiniXerr/src/actors/parathread.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | ... let mut chain = Chain::default(); //-- start the network by building a genesis block and a default transaction with 100 coins from ... [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> coiniXerr/src/main.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | ... let mut transaction_serialized_into_vec_bytes_using_serede = serde_json::to_vec(&deserialized_transaction_serde).unwrap(); //-- con... [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] --> coiniXerr/src/actors/parathread.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | ... let mut chain = Chain::default(); //-- start the network by building a genesis block and a default transaction with 100 coins from ... [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> coiniXerr/src/main.rs:294:25 [INFO] [stdout] | [INFO] [stdout] 294 | ... let mut transaction_serialized_into_vec_bytes_using_borsh = deserialized_transaction_borsh.try_to_vec().unwrap(); //-- converting t... [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] --> coiniXerr/src/main.rs:321:29 [INFO] [stdout] | [INFO] [stdout] 321 | ... let mut utf8_bytes_using_as_mut_slice = signed_transaction_serialized_into_vec_bytes_using_borsh.as_mut_slice(); //-- converting Ve... [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] --> coiniXerr/src/main.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 138 | let (simd_sender, mut simd_receiver) = mpsc::channel::(buffer_size); //-- defining sender and receiver of the simd ops [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] --> coiniXerr/src/main.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | ... let mut runtime_info = cloned_arc_mutex_runtime_info_object.lock().unwrap().to_owned(); //-- unlocking, unwrapping and cloning (by ... [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_SPEND_SUCCESS` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const MESSAGE_SPEND_SUCCESS: &str = "Spend successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_INTERNAL_SERVER_ERROR` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const MESSAGE_INTERNAL_SERVER_ERROR: &str = "Internal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_TOKEN_MISSING` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const MESSAGE_TOKEN_MISSING: &str = "Token is missing"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_ACCESS_DENIED` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const MESSAGE_ACCESS_DENIED: &str = "Access Denied"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_NOT_ENOUGH_COINS` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MESSAGE_NOT_ENOUGH_COINS: &str = "Not enough coins"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTHORIZATION` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const AUTHORIZATION: &str = "Authorization"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const EMPTY: &str = ""; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `BoundTypeToTrait` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn BoundTypeToTrait(name: Wildonion) where Wildonion: Void + 'static{ //-- name param lifetime will be valid as long as the receiver ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub fn new(branch_id: Uuid, branch_name: String, blocks: Vec) -> Self{ //-- constructor of Chain struct - creating another bra... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `store` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 310 | pub fn store(&mut self) -> Self{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_leaf` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:434:12 [INFO] [stdout] | [INFO] [stdout] 434 | pub fn is_leaf(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_child` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:438:12 [INFO] [stdout] | [INFO] [stdout] 438 | pub fn add_child(&mut self, node: Node){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `children` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn children(&mut self, node: Node) -> Result>, String>{ //-- &mut self means we're borrowing Node fields using a mut... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Event` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Event{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Server{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Thread` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Thread{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Channel{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerMember` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct ServerMember; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelMember` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct ChannelMember; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `health` is never used [INFO] [stdout] --> coiniXerr/src/actors/parathread.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn health(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> coiniXerr/src/engine/consensus/pos.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn decode(block: Option) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServiceError` is never constructed [INFO] [stdout] --> coiniXerr/src/utils/res.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ServiceError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> coiniXerr/src/utils/res.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(http_status: StatusCode, message: String) -> ServiceError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `response` is never used [INFO] [stdout] --> coiniXerr/src/utils/res.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn response(&self) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_u8_to_hex_string` is never used [INFO] [stdout] --> coiniXerr/src/utils/hexy.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn from_u8_to_hex_string(bytes: &[u8]) -> Result { //-- take a reference from u8 and will return a hex String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex_string_to_u8` is never used [INFO] [stdout] --> coiniXerr/src/utils/hexy.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn from_hex_string_to_u8(hex_string: &str) -> Result, ()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex_string_to_u16` is never used [INFO] [stdout] --> coiniXerr/src/utils/hexy.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn from_hex_string_to_u16(s: &str) -> Result, ParseIntError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `coiniXerr` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `coini_xerr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coiniXerr_http_port` should have a snake case name [INFO] [stdout] --> coiniXerr/src/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let coiniXerr_http_port = env::var("COINIXERR_HTTP_PORT").expect("⚠️ please set coiniXerr http port in .env"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `coini_xerr_http_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coiniXerr_tcp_port` should have a snake case name [INFO] [stdout] --> coiniXerr/src/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let coiniXerr_tcp_port = env::var("COINIXERR_TCP_PORT").expect("⚠️ please set coiniXerr tcp port in .env"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `coini_xerr_tcp_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `BoundTypeToTrait` should have a snake case name [INFO] [stdout] --> coiniXerr/src/schemas.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn BoundTypeToTrait(name: Wildonion) where Wildonion: Void + 'static{ //-- name param lifetime will be valid as long as the receiver ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bound_type_to_trait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 74 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> coiniXerr/src/main.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | ... let mut transaction_serialized_into_vec_bytes_using_serede = serde_json::to_vec(&deserialized_transaction_serde).unwrap(); //-- con... [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] --> coiniXerr/src/main.rs:294:25 [INFO] [stdout] | [INFO] [stdout] 294 | ... let mut transaction_serialized_into_vec_bytes_using_borsh = deserialized_transaction_borsh.try_to_vec().unwrap(); //-- converting t... [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] --> coiniXerr/src/main.rs:321:29 [INFO] [stdout] | [INFO] [stdout] 321 | ... let mut utf8_bytes_using_as_mut_slice = signed_transaction_serialized_into_vec_bytes_using_borsh.as_mut_slice(); //-- converting Ve... [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] --> coiniXerr/src/main.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 138 | let (simd_sender, mut simd_receiver) = mpsc::channel::(buffer_size); //-- defining sender and receiver of the simd ops [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] --> coiniXerr/src/main.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | ... let mut runtime_info = cloned_arc_mutex_runtime_info_object.lock().unwrap().to_owned(); //-- unlocking, unwrapping and cloning (by ... [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_SPEND_SUCCESS` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const MESSAGE_SPEND_SUCCESS: &str = "Spend successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_INTERNAL_SERVER_ERROR` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const MESSAGE_INTERNAL_SERVER_ERROR: &str = "Internal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_TOKEN_MISSING` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const MESSAGE_TOKEN_MISSING: &str = "Token is missing"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_ACCESS_DENIED` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const MESSAGE_ACCESS_DENIED: &str = "Access Denied"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_NOT_ENOUGH_COINS` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const MESSAGE_NOT_ENOUGH_COINS: &str = "Not enough coins"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTHORIZATION` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const AUTHORIZATION: &str = "Authorization"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY` is never used [INFO] [stdout] --> coiniXerr/src/constants.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const EMPTY: &str = ""; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `BoundTypeToTrait` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn BoundTypeToTrait(name: Wildonion) where Wildonion: Void + 'static{ //-- name param lifetime will be valid as long as the receiver ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub fn new(branch_id: Uuid, branch_name: String, blocks: Vec) -> Self{ //-- constructor of Chain struct - creating another bra... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `store` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 310 | pub fn store(&mut self) -> Self{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_leaf` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:434:12 [INFO] [stdout] | [INFO] [stdout] 434 | pub fn is_leaf(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_child` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:438:12 [INFO] [stdout] | [INFO] [stdout] 438 | pub fn add_child(&mut self, node: Node){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `children` is never used [INFO] [stdout] --> coiniXerr/src/schemas.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn children(&mut self, node: Node) -> Result>, String>{ //-- &mut self means we're borrowing Node fields using a mut... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Event` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Event{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Server{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Thread` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Thread{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Channel{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerMember` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct ServerMember; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelMember` is never constructed [INFO] [stdout] --> coiniXerr/src/schemas.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct ChannelMember; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `health` is never used [INFO] [stdout] --> coiniXerr/src/actors/parathread.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn health(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> coiniXerr/src/engine/consensus/pos.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn decode(block: Option) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServiceError` is never constructed [INFO] [stdout] --> coiniXerr/src/utils/res.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ServiceError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> coiniXerr/src/utils/res.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(http_status: StatusCode, message: String) -> ServiceError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `response` is never used [INFO] [stdout] --> coiniXerr/src/utils/res.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn response(&self) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_u8_to_hex_string` is never used [INFO] [stdout] --> coiniXerr/src/utils/hexy.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn from_u8_to_hex_string(bytes: &[u8]) -> Result { //-- take a reference from u8 and will return a hex String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex_string_to_u8` is never used [INFO] [stdout] --> coiniXerr/src/utils/hexy.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn from_hex_string_to_u8(hex_string: &str) -> Result, ()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_hex_string_to_u16` is never used [INFO] [stdout] --> coiniXerr/src/utils/hexy.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn from_hex_string_to_u16(s: &str) -> Result, ParseIntError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `coiniXerr` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `coini_xerr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coiniXerr_http_port` should have a snake case name [INFO] [stdout] --> coiniXerr/src/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let coiniXerr_http_port = env::var("COINIXERR_HTTP_PORT").expect("⚠️ please set coiniXerr http port in .env"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `coini_xerr_http_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `coiniXerr_tcp_port` should have a snake case name [INFO] [stdout] --> coiniXerr/src/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let coiniXerr_tcp_port = env::var("COINIXERR_TCP_PORT").expect("⚠️ please set coiniXerr tcp port in .env"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `coini_xerr_tcp_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `BoundTypeToTrait` should have a snake case name [INFO] [stdout] --> coiniXerr/src/schemas.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn BoundTypeToTrait(name: Wildonion) where Wildonion: Void + 'static{ //-- name param lifetime will be valid as long as the receiver ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bound_type_to_trait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 74 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ayoub v0.1.0 (/opt/rustwide/workdir/PaaS) [INFO] [stdout] warning: unused imports: `error`, `info` [INFO] [stdout] --> PaaS/src/middlewares.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use log::{info, error}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::Body` [INFO] [stdout] --> PaaS/src/middlewares.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | use hyper::Body; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemas` [INFO] [stdout] --> PaaS/src/contexts/app.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{constants::*, schemas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Server`, `server::conn::AddrIncoming` [INFO] [stdout] --> PaaS/src/contexts/app.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{Body, Server, server::conn::AddrIncoming}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `void` should have an upper camel case name [INFO] [stdout] --> PaaS/src/contexts/bot.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | pub trait void{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Void` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, `env` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | use std::{fmt, env, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::services` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::services; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::channel::mpsc as future_mpsc` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use futures::channel::mpsc as future_mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc as tokio_mpsc` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | use tokio::sync::mpsc as tokio_mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::join as futures_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | use futures::join as futures_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::join as futures_util_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | use futures_util::join as futures_util_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::join as tokio_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | use tokio::join as tokio_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::join as rayon_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | use rayon::join as rayon_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/schemas/auth.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/schemas/event.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/schemas/game.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/check_otp.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/check_token.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/check_token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/home.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/home.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/login.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/auth/login.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `Write` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{mem, slice, env, io::{BufWriter, Write}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use serde::{Serialize, Deserialize}; //-- to use the deserialize() and serialize() methods on struct we must use these traits [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `doc`, `oid::ObjectId`, `self` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/add.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/add.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/add.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | use mongodb::{Client, bson::{self, doc, oid::ObjectId}}; //-- self referes to the bson struct itself cause there is a struct called bson ... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | use mongodb::{Client, bson::{self, doc, oid::ObjectId}}; //-- self referes to the bson struct itself cause there is a struct called bson ... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/expire.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/expire.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/expire.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/event/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `Write` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{BufWriter, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middlewares` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::middlewares; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schemas` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::schemas; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `doc`, `oid::ObjectId`, `self` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/phase.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/phase.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/player.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/player.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/game/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `doc`, `oid::ObjectId`, `self` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | use mongodb::{Client, bson::{self, doc, oid::ObjectId}}; //-- self referes to the bson struct itself cause there is a struct called bson ... [INFO] [stdout] | ^^^^ ^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/nft/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/nft/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `info` [INFO] [stdout] --> PaaS/src/middlewares.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use log::{info, error}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hyper::Body` [INFO] [stdout] --> PaaS/src/middlewares.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | use hyper::Body; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schemas` [INFO] [stdout] --> PaaS/src/contexts/app.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{constants::*, schemas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Server`, `server::conn::AddrIncoming` [INFO] [stdout] --> PaaS/src/contexts/app.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{Body, Server, server::conn::AddrIncoming}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `void` should have an upper camel case name [INFO] [stdout] --> PaaS/src/contexts/bot.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | pub trait void{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Void` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, `env` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | use std::{fmt, env, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::services` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::services; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::channel::mpsc as future_mpsc` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | use futures::channel::mpsc as future_mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc as tokio_mpsc` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | use tokio::sync::mpsc as tokio_mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::join as futures_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | use futures::join as futures_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::join as futures_util_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | use futures_util::join as futures_util_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::join as tokio_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | use tokio::join as tokio_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::join as rayon_join` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | use rayon::join as rayon_join; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/schemas/auth.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/schemas/event.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/schemas/game.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/check_otp.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/check_token.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/check_token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/home.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/home.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/login.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/auth/login.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `Write` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{mem, slice, env, io::{BufWriter, Write}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use serde::{Serialize, Deserialize}; //-- to use the deserialize() and serialize() methods on struct we must use these traits [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `doc`, `oid::ObjectId`, `self` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/add.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/add.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/add.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | use mongodb::{Client, bson::{self, doc, oid::ObjectId}}; //-- self referes to the bson struct itself cause there is a struct called bson ... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | use mongodb::{Client, bson::{self, doc, oid::ObjectId}}; //-- self referes to the bson struct itself cause there is a struct called bson ... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/expire.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/expire.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/event/expire.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/event/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `Write` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{BufWriter, Write}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::middlewares` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::middlewares; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schemas` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::schemas; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `doc`, `oid::ObjectId`, `self` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/event/phase.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/event/phase.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/player.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/player.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/game/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use mongodb::bson::{self, oid::ObjectId, doc}; //-- self referes to the bson struct itself cause there is a struct called bson inside the... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | use hyper::{header, StatusCode, Body, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `doc`, `oid::ObjectId`, `self` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | use mongodb::{Client, bson::{self, doc, oid::ObjectId}}; //-- self referes to the bson struct itself cause there is a struct called bson ... [INFO] [stdout] | ^^^^ ^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> PaaS/src/controllers/nft/_404.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- futures is used for reading and writing streams asyncly from and into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> PaaS/src/controllers/nft/_404.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use bytes::Buf; //-- it'll be needed to call the reader() method on the whole_body buffer and is used for manipulating coming network byt... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:128:45 [INFO] [stdout] | [INFO] [stdout] 128 | ... let mut sms_response_serialized_into_vec_bytes_using_borsh = sms_response.try_to_vec().unwrap(); //-- converting the sms_response o... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:134:45 [INFO] [stdout] | [INFO] [stdout] 134 | ... let mut utf8_bytes_using_as_mut_slice = sms_response_serialized_into_vec_bytes_using_serede.as_mut_slice(); //-- converting 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] --> PaaS/src/controllers/auth/otp_request.rs:128:45 [INFO] [stdout] | [INFO] [stdout] 128 | ... let mut sms_response_serialized_into_vec_bytes_using_borsh = sms_response.try_to_vec().unwrap(); //-- converting the sms_response o... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:134:45 [INFO] [stdout] | [INFO] [stdout] 134 | ... let mut utf8_bytes_using_as_mut_slice = sms_response_serialized_into_vec_bytes_using_serede.as_mut_slice(); //-- converting Vec... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `io_buffer_size` [INFO] [stdout] --> PaaS/src/main.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let io_buffer_size = env::var("IO_BUFFER_SIZE").expect("⚠️ no io buffer size variable set").parse::().unwrap() as usize; //-- us... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_io_buffer_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment` [INFO] [stdout] --> PaaS/src/main.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let environment = env::var("ENVIRONMENT").expect("⚠️ no environment variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_username` [INFO] [stdout] --> PaaS/src/main.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | let db_username = env::var("MONGODB_USERNAME").expect("⚠️ no db username variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_password` [INFO] [stdout] --> PaaS/src/main.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let db_password = env::var("MONGODB_PASSWORD").expect("⚠️ no db password variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_password` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_server_addr` [INFO] [stdout] --> PaaS/src/main.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let event_server_addr = format!("{}:{}", host, event_port).as_str().parse::().unwrap(); //-- converting the host and port... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_server_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_server_addr` [INFO] [stdout] --> PaaS/src/main.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let game_server_addr = format!("{}:{}", host, game_port).as_str().parse::().unwrap(); //-- converting the host and port S... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_server_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nft_server_addr` [INFO] [stdout] --> PaaS/src/main.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let nft_server_addr = format!("{}:{}", host, nft_port).as_str().parse::().unwrap(); //-- converting the host and port Str... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nft_server_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_doc` [INFO] [stdout] --> PaaS/src/middlewares.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | Some(user_doc) => true, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `boxed_array` [INFO] [stdout] --> PaaS/src/utils.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let boxed_array: Box<[u8; 4]> = match boxed_slice.try_into() { //-- Boxing u8 with size 4 cause our input number is 32 bits which is ... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_boxed_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> PaaS/src/utils.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | pub async fn upload_asset(path: &str, payload: &[u8]){ //-- mapping the incoming utf8 bytes payload into a file [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> PaaS/src/utils.rs:134:39 [INFO] [stdout] | [INFO] [stdout] 134 | pub async fn upload_asset(path: &str, payload: &[u8]){ //-- mapping the incoming utf8 bytes payload into a file [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `async_task` [INFO] [stdout] --> PaaS/src/utils.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | ... let async_task = tokio::spawn(async move{ //-- spawning async task to solve it on the background using tokio green threads based on... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_async_task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cloned_receiver` [INFO] [stdout] --> PaaS/src/utils.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | ... let cloned_receiver = Arc::clone(&arc_recv); // can't clone receiver, in order to move it between threads we have to clone it using... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloned_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> PaaS/src/utils.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | let thread = thread::spawn(|| async move{ //-- the body of the closure is an async block means it'll return a future object (trait Fu... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> PaaS/src/utils.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | let s = &hello[0..2]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decoded` [INFO] [stdout] --> PaaS/src/utils.rs:371:13 [INFO] [stdout] | [INFO] [stdout] 371 | let decoded = serde_json::from_slice::(&encoded.as_ref().unwrap()); //-- as_ref() returns a reference to the original type [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decoded_borsh` [INFO] [stdout] --> PaaS/src/utils.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | let decoded_borsh = Chie::try_from_slice(&encoded_borsh).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decoded_borsh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> PaaS/src/utils.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | ... let instance = Pack::new(); //-- since new() method of the Pack struct will return a new instance of the struct which is allocated ... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_thread` [INFO] [stdout] --> PaaS/src/utils.rs:380:19 [INFO] [stdout] | [INFO] [stdout] 380 | fn ref_struct(num_thread: &u8) -> &Pack{ //-- returning ref from function to a pre allocated data type (not inside the function) Pack... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> PaaS/src/utils.rs:388:43 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn ref_str_other_pointer_lifetime(status: &u8) -> &str{ //-- in this case we're good to return the pointer from the function or c... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> PaaS/src/utils.rs:401:45 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn ref_to_str_specific_lifetime<'a>(status: u8) -> &'a str{ //-- in this case we're good to return the pointer from the function ... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient` [INFO] [stdout] --> PaaS/src/utils.rs:448:29 [INFO] [stdout] | [INFO] [stdout] 448 | fn send_code(&mut self, recipient: PhoneNumber, message: Self::Message) -> Result{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> PaaS/src/utils.rs:448:53 [INFO] [stdout] | [INFO] [stdout] 448 | fn send_code(&mut self, recipient: PhoneNumber, message: Self::Message) -> Result{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:144:26 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn future_result(idx: u64) -> FutureResult{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fut_res` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | ... let fut_res = if let FutureResult::Successful(encoded_result) = super::env::future_result(0){ //-- getting the result of the future... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fut_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_result` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:303:59 [INFO] [stdout] | [INFO] [stdout] 303 | ...reResult::Successful(encoded_result) = super::env::future_result(0){ //-- getting the result of the future object only if it was succe... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:317:42 [INFO] [stdout] | [INFO] [stdout] 317 | FutureResult::Successful(data) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/auth/check_token.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/auth/home.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_doc` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | ... Some(user_doc) => { //-- if we find a user with this username we have to tell the user do a login [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sms_response_serialized_into_bytes` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:126:45 [INFO] [stdout] | [INFO] [stdout] 126 | ... let sms_response_serialized_into_bytes: &[u8] = unsafe { slice::from_raw_parts(&sms_response as *co... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sms_response_serialized_into_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deserialize_to_utf8_using_serde_from_slice` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:129:45 [INFO] [stdout] | [INFO] [stdout] 129 | ... let deserialize_to_utf8_using_serde_from_slice = serde_json::from_slice::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deserialize_to_utf8_using_serde_from_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deserialize_to_utf8_using_borsh_from_slice` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:130:45 [INFO] [stdout] | [INFO] [stdout] 130 | ... let deserialize_to_utf8_using_borsh_from_slice = schemas::auth::SMSResponse::try_from_slice(&sms_resp... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deserialize_to_utf8_using_borsh_from_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_as_mut_slice` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ...t mut utf8_bytes_using_as_mut_slice = sms_response_serialized_into_vec_bytes_using_serede.as_mut_slice(); //-- converting Vec to m... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_as_mut_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_casting` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:135:45 [INFO] [stdout] | [INFO] [stdout] 135 | ... let utf8_bytes_using_casting: &[u8] = &sms_response_serialized_into_vec_bytes_using_serede; //-- since the Vec will be coerced ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_casting` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf_bytes_dereference_from_box` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:137:45 [INFO] [stdout] | [INFO] [stdout] 137 | ... let utf_bytes_dereference_from_box = &*boxed_utf8_bytes_using_box_slcie; //-- borrow the ownership of the dereferenced boxed_utf8_b... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf_bytes_dereference_from_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serialized_updated_at` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:157:45 [INFO] [stdout] | [INFO] [stdout] 157 | ... let serialized_updated_at = bson::to_bson(&updated_at).unwrap(); //-- we have to serialize the updated_at to BSON Document object i... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serialized_updated_at` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `otp_info` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:160:50 [INFO] [stdout] | [INFO] [stdout] 160 | ... Some(otp_info) => { //-- once we get here means that the user is already exists in the collection and we have to save the generated... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_otp_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | api.post("/event/get/availables", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is not i... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let params = uri.query().unwrap(); //-- extracting all parameters inside the url [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `updated_result` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:76:56 [INFO] [stdout] | [INFO] [stdout] 76 | ... Ok(updated_result) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updated_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutable_pointer_to_name` is assigned to, but never used [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | let mut mutable_pointer_to_name = &mut name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mutable_pointer_to_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable_pointer_to_name` is never read [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | ... mutable_pointer_to_name = &mut "changed_wildonion also changed the name".to_string(); // *** we all are referenced by those who are... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte_name` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | let byte_name = Ok::<&[u8], String>(b"wildonion"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_byte_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | api.post("", |req, res| async move{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn process_payment(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:235:29 [INFO] [stdout] | [INFO] [stdout] 235 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> PaaS/src/controllers/game/player.rs:923:21 [INFO] [stdout] | [INFO] [stdout] 923 | let params = uri.query().unwrap(); //-- extracting all parameters inside the url [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:236:44 [INFO] [stdout] | [INFO] [stdout] 236 | api.post("/game/side/get/availables", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is n... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:237:44 [INFO] [stdout] | [INFO] [stdout] 237 | api.post("/game/role/get/availables", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is n... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:433:38 [INFO] [stdout] | [INFO] [stdout] 433 | api.post("/game/get/group/all", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is not imp... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | api.post("/nft/mint", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is not implemented f... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn main(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/auth.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/auth.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/event.rs:200:27 [INFO] [stdout] | [INFO] [stdout] 200 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/event.rs:204:27 [INFO] [stdout] | [INFO] [stdout] 204 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/game.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/game.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/nft.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/nft.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `io_buffer_size` [INFO] [stdout] --> PaaS/src/main.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let io_buffer_size = env::var("IO_BUFFER_SIZE").expect("⚠️ no io buffer size variable set").parse::().unwrap() as usize; //-- us... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_io_buffer_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `environment` [INFO] [stdout] --> PaaS/src/main.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let environment = env::var("ENVIRONMENT").expect("⚠️ no environment variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_username` [INFO] [stdout] --> PaaS/src/main.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | let db_username = env::var("MONGODB_USERNAME").expect("⚠️ no db username variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_password` [INFO] [stdout] --> PaaS/src/main.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let db_password = env::var("MONGODB_PASSWORD").expect("⚠️ no db password variable set"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_password` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_server_addr` [INFO] [stdout] --> PaaS/src/main.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let event_server_addr = format!("{}:{}", host, event_port).as_str().parse::().unwrap(); //-- converting the host and port... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_server_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_server_addr` [INFO] [stdout] --> PaaS/src/main.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let game_server_addr = format!("{}:{}", host, game_port).as_str().parse::().unwrap(); //-- converting the host and port S... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_server_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nft_server_addr` [INFO] [stdout] --> PaaS/src/main.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let nft_server_addr = format!("{}:{}", host, nft_port).as_str().parse::().unwrap(); //-- converting the host and port Str... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nft_server_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_doc` [INFO] [stdout] --> PaaS/src/middlewares.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | Some(user_doc) => true, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `boxed_array` [INFO] [stdout] --> PaaS/src/utils.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let boxed_array: Box<[u8; 4]> = match boxed_slice.try_into() { //-- Boxing u8 with size 4 cause our input number is 32 bits which is ... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_boxed_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> PaaS/src/utils.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | pub async fn upload_asset(path: &str, payload: &[u8]){ //-- mapping the incoming utf8 bytes payload into a file [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> PaaS/src/utils.rs:134:39 [INFO] [stdout] | [INFO] [stdout] 134 | pub async fn upload_asset(path: &str, payload: &[u8]){ //-- mapping the incoming utf8 bytes payload into a file [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `async_task` [INFO] [stdout] --> PaaS/src/utils.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | ... let async_task = tokio::spawn(async move{ //-- spawning async task to solve it on the background using tokio green threads based on... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_async_task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cloned_receiver` [INFO] [stdout] --> PaaS/src/utils.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | ... let cloned_receiver = Arc::clone(&arc_recv); // can't clone receiver, in order to move it between threads we have to clone it using... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cloned_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> PaaS/src/utils.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | let thread = thread::spawn(|| async move{ //-- the body of the closure is an async block means it'll return a future object (trait Fu... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> PaaS/src/utils.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | let s = &hello[0..2]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decoded` [INFO] [stdout] --> PaaS/src/utils.rs:371:13 [INFO] [stdout] | [INFO] [stdout] 371 | let decoded = serde_json::from_slice::(&encoded.as_ref().unwrap()); //-- as_ref() returns a reference to the original type [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decoded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decoded_borsh` [INFO] [stdout] --> PaaS/src/utils.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | let decoded_borsh = Chie::try_from_slice(&encoded_borsh).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decoded_borsh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> PaaS/src/utils.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | ... let instance = Pack::new(); //-- since new() method of the Pack struct will return a new instance of the struct which is allocated ... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_thread` [INFO] [stdout] --> PaaS/src/utils.rs:380:19 [INFO] [stdout] | [INFO] [stdout] 380 | fn ref_struct(num_thread: &u8) -> &Pack{ //-- returning ref from function to a pre allocated data type (not inside the function) Pack... [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> PaaS/src/utils.rs:388:43 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn ref_str_other_pointer_lifetime(status: &u8) -> &str{ //-- in this case we're good to return the pointer from the function or c... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> PaaS/src/utils.rs:401:45 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn ref_to_str_specific_lifetime<'a>(status: u8) -> &'a str{ //-- in this case we're good to return the pointer from the function ... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient` [INFO] [stdout] --> PaaS/src/utils.rs:448:29 [INFO] [stdout] | [INFO] [stdout] 448 | fn send_code(&mut self, recipient: PhoneNumber, message: Self::Message) -> Result{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> PaaS/src/utils.rs:448:53 [INFO] [stdout] | [INFO] [stdout] 448 | fn send_code(&mut self, recipient: PhoneNumber, message: Self::Message) -> Result{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:144:26 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn future_result(idx: u64) -> FutureResult{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fut_res` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | ... let fut_res = if let FutureResult::Successful(encoded_result) = super::env::future_result(0){ //-- getting the result of the future... [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fut_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoded_result` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:303:59 [INFO] [stdout] | [INFO] [stdout] 303 | ...reResult::Successful(encoded_result) = super::env::future_result(0){ //-- getting the result of the future object only if it was succe... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:317:42 [INFO] [stdout] | [INFO] [stdout] 317 | FutureResult::Successful(data) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/auth/check_token.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/auth/home.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_doc` [INFO] [stdout] --> PaaS/src/controllers/auth/signup.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | ... Some(user_doc) => { //-- if we find a user with this username we have to tell the user do a login [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sms_response_serialized_into_bytes` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:126:45 [INFO] [stdout] | [INFO] [stdout] 126 | ... let sms_response_serialized_into_bytes: &[u8] = unsafe { slice::from_raw_parts(&sms_response as *co... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sms_response_serialized_into_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deserialize_to_utf8_using_serde_from_slice` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:129:45 [INFO] [stdout] | [INFO] [stdout] 129 | ... let deserialize_to_utf8_using_serde_from_slice = serde_json::from_slice::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deserialize_to_utf8_using_serde_from_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deserialize_to_utf8_using_borsh_from_slice` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:130:45 [INFO] [stdout] | [INFO] [stdout] 130 | ... let deserialize_to_utf8_using_borsh_from_slice = schemas::auth::SMSResponse::try_from_slice(&sms_resp... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deserialize_to_utf8_using_borsh_from_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_as_mut_slice` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:134:49 [INFO] [stdout] | [INFO] [stdout] 134 | ...t mut utf8_bytes_using_as_mut_slice = sms_response_serialized_into_vec_bytes_using_serede.as_mut_slice(); //-- converting Vec to m... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_as_mut_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf8_bytes_using_casting` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:135:45 [INFO] [stdout] | [INFO] [stdout] 135 | ... let utf8_bytes_using_casting: &[u8] = &sms_response_serialized_into_vec_bytes_using_serede; //-- since the Vec will be coerced ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf8_bytes_using_casting` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `utf_bytes_dereference_from_box` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:137:45 [INFO] [stdout] | [INFO] [stdout] 137 | ... let utf_bytes_dereference_from_box = &*boxed_utf8_bytes_using_box_slcie; //-- borrow the ownership of the dereferenced boxed_utf8_b... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_utf_bytes_dereference_from_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serialized_updated_at` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:157:45 [INFO] [stdout] | [INFO] [stdout] 157 | ... let serialized_updated_at = bson::to_bson(&updated_at).unwrap(); //-- we have to serialize the updated_at to BSON Document object i... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serialized_updated_at` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `otp_info` [INFO] [stdout] --> PaaS/src/controllers/auth/otp_request.rs:160:50 [INFO] [stdout] | [INFO] [stdout] 160 | ... Some(otp_info) => { //-- once we get here means that the user is already exists in the collection and we have to save the generated... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_otp_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/auth/user.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | api.post("/event/get/availables", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is not i... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> PaaS/src/controllers/event/get.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let params = uri.query().unwrap(); //-- extracting all parameters inside the url [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `updated_result` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:76:56 [INFO] [stdout] | [INFO] [stdout] 76 | ... Ok(updated_result) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updated_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> PaaS/src/controllers/event/vote.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutable_pointer_to_name` is assigned to, but never used [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | let mut mutable_pointer_to_name = &mut name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mutable_pointer_to_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable_pointer_to_name` is never read [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | ... mutable_pointer_to_name = &mut "changed_wildonion also changed the name".to_string(); // *** we all are referenced by those who are... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte_name` [INFO] [stdout] --> PaaS/src/controllers/event/simd.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | let byte_name = Ok::<&[u8], String>(b"wildonion"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_byte_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | api.post("", |req, res| async move{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn process_payment(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/deck.rs:235:29 [INFO] [stdout] | [INFO] [stdout] 235 | ... Ok((token_data, req)) => { //-- the decoded token and the request object will be returned from the function call since the Copy and... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> PaaS/src/controllers/game/player.rs:923:21 [INFO] [stdout] | [INFO] [stdout] 923 | let params = uri.query().unwrap(); //-- extracting all parameters inside the url [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/side.rs:236:44 [INFO] [stdout] | [INFO] [stdout] 236 | api.post("/game/side/get/availables", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is n... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/role.rs:237:44 [INFO] [stdout] | [INFO] [stdout] 237 | api.post("/game/role/get/availables", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is n... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/game/group.rs:433:38 [INFO] [stdout] | [INFO] [stdout] 433 | api.post("/game/get/group/all", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is not imp... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | api.post("/nft/mint", |req, res| async move{ // NOTE - api will be moved here since neither trait Copy nor Clone is not implemented f... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> PaaS/src/controllers/nft/mint.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn main(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/auth.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/auth.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/event.rs:200:27 [INFO] [stdout] | [INFO] [stdout] 200 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/event.rs:204:27 [INFO] [stdout] | [INFO] [stdout] 204 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/game.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/game.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/nft.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | fn started(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> PaaS/src/services/nft.rs:203:27 [INFO] [stdout] | [INFO] [stdout] 203 | fn stopped(&mut self, ctx: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> PaaS/src/main.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut raw_pointer_to_server = &mut auth_server as *mut Server; //-- taking a mutable raw p... [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] --> PaaS/src/main.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | ... let mut raw_pointer_to_server = &mut event_server as *mut Server; //-- taking a mutable ra... [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] --> PaaS/src/main.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | ... let mut raw_pointer_to_server = &mut game_server as *mut Server; //-- taking a mutable raw... [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] --> PaaS/src/main.rs:447:13 [INFO] [stdout] | [INFO] [stdout] 447 | ... let mut raw_pointer_to_server = &mut nft_server as *mut Server; //-- taking a mutable raw poin... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `async_gen_random_idx` is never used [INFO] [stdout] --> PaaS/src/utils.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn async_gen_random_idx(idx: usize) -> BoxFuture<'static, usize>{ // NOTE - pub type BoxFuture<'a, T> = Pin PaaS/src/utils.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn string_to_static_str(s: String) -> &'static str { //-- the lifetime of the return str is static and is valid as long as the entire... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upload_asset` is never used [INFO] [stdout] --> PaaS/src/utils.rs:134:14 [INFO] [stdout] | [INFO] [stdout] 134 | pub async fn upload_asset(path: &str, payload: &[u8]){ //-- mapping the incoming utf8 bytes payload into a file [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `forward` is never used [INFO] [stdout] --> PaaS/src/utils.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn forward(x_train: Arc>>) -> f64{ //-- without &mut self would be an associated function not a method [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Context` is never used [INFO] [stdout] --> PaaS/src/utils.rs:307:10 [INFO] [stdout] | [INFO] [stdout] 307 | pub type Context<'a, Pack> = Unpack<'a, Pack, SIZE>; //-- Pack type will be bounded to Interface trait and 'l lifetime [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_none_trait` is never used [INFO] [stdout] --> PaaS/src/utils.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn return_none_trait() -> () where T: Interface{ // NOTE - `T` type must be bound to Interface trait [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_impl_trait` is never used [INFO] [stdout] --> PaaS/src/utils.rs:322:4 [INFO] [stdout] | [INFO] [stdout] 322 | fn return_impl_trait() -> impl Interface { // NOTE - returning impl Trait from function means we're implementing the trait for the object... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_box_trait` is never used [INFO] [stdout] --> PaaS/src/utils.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn return_box_trait() -> Box { // NOTE - returning Box from function means we're returning a struct i... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> PaaS/src/utils.rs:529:5 [INFO] [stdout] | [INFO] [stdout] 528 | pub enum Storagekey{ //-- defining an enum based unique storage key for every our collections to avoid collection collision which might b... [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 529 | Sales, ////////---------➔ converting this to vector (Storagekey::Sales.try_to_vec().unwrap()) gives us an array of [0] which is the u... [INFO] [stdout] | ^^^^^ [INFO] [stdout] 530 | ByOwnerId, ////////---------➔ converting this to vector (Storagekey::ByOwnerId.try_to_vec().unwrap()) gives us an array of [1] which ... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 531 | ByOwnerIdInner { account_id_hash: [u8; 32] }, //-- 32 bytes or 256 bits (cause it's an array of 32 elements of type u8 which is 32 el... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 532 | ByNFTContractId, ////////---------➔ converting this to vector (Storagekey::ByNFTContractId.try_to_vec().unwrap()) gives us an array o... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 533 | ByNFTContractIdInner { account_id_hash: [u8; 2] }, //-- 2 bytes or 256 bits (cause it's an array of 2 elements of type u8 which is 2 ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 534 | ByNFTTokenType, ////////---------➔ converting this to vector (Storagekey::ByNFTTokenType.try_to_vec().unwrap()) gives us an array of ... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 535 | ByNFTTokenTypeInner { token_type_hash: [u8; 32] }, //-- 32 bytes or 256 bits (cause it's an array of 32 elements of type u8 which is ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 536 | FTTokenIds, ////////---------➔ converting this to vector (Storagekey::FTTokenIds.try_to_vec().unwrap()) gives us an array of [7] whic... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 537 | StorageDeposits, ////////---------➔ converting this to vector (Storagekey::StorageDeposits.try_to_vec().unwrap()) gives us an array o... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 538 | Collection, ////////---------➔ converting this to vector (Storagekey::Collection.try_to_vec().unwrap()) gives us an array of [9] whic... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> PaaS/src/utils.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_struct` is never used [INFO] [stdout] --> PaaS/src/utils.rs:380:8 [INFO] [stdout] | [INFO] [stdout] 380 | fn ref_struct(num_thread: &u8) -> &Pack{ //-- returning ref from function to a pre allocated data type (not inside the function) Pack... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_str_other_pointer_lifetime` is never used [INFO] [stdout] --> PaaS/src/utils.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn ref_str_other_pointer_lifetime(status: &u8) -> &str{ //-- in this case we're good to return the pointer from the function or c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_to_str_other_self_lifetime` is never used [INFO] [stdout] --> PaaS/src/utils.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn ref_to_str_other_self_lifetime(&self) -> &str{ //-- in this case we're good to return the pointer from the function or send a ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_to_str_specific_lifetime` is never used [INFO] [stdout] --> PaaS/src/utils.rs:401:12 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn ref_to_str_specific_lifetime<'a>(status: u8) -> &'a str{ //-- in this case we're good to return the pointer from the function ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_to_str_static` is never used [INFO] [stdout] --> PaaS/src/utils.rs:407:12 [INFO] [stdout] | [INFO] [stdout] 407 | pub fn ref_to_str_static() -> &'static str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even` is never used [INFO] [stdout] --> PaaS/src/utils.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 595 | pub fn even(x: i32) -> bool{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `odd` is never used [INFO] [stdout] --> PaaS/src/utils.rs:599:12 [INFO] [stdout] | [INFO] [stdout] 599 | pub fn odd(x: i32) -> bool{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GenericError` is never used [INFO] [stdout] --> PaaS/src/constants.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GenericError = Box; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DB` is never used [INFO] [stdout] --> PaaS/src/constants.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub static mut DB: Option> = None; // NOTE - use of mutable static is unsafe and requires unsafe function or block... [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INTERNAL_SERVER_ERROR` is never used [INFO] [stdout] --> PaaS/src/constants.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub static INTERNAL_SERVER_ERROR: &str = "Interal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WRONG_CREDENTIALS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub static WRONG_CREDENTIALS: &str = "Wrong Credentials"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WELCOME` is never used [INFO] [stdout] --> PaaS/src/constants.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub static WELCOME: &str = "Welcome Home"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_ACCEPTABLE` is never used [INFO] [stdout] --> PaaS/src/constants.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub static NOT_ACCEPTABLE: &str = "Not Acceptable"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BAD_REQUEST` is never used [INFO] [stdout] --> PaaS/src/constants.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub static BAD_REQUEST: &str = "Bad Request"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNAUTHORISED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub static UNAUTHORISED: &str = "Unauthorised"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `METHOD_NOT_ALLOWED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub static METHOD_NOT_ALLOWED: &str = "Method Not Allowed"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DEV_LEVEL` is never used [INFO] [stdout] --> PaaS/src/constants.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub static DEV_LEVEL: &u8 = &0; //-- DEV_LEVEL is of type &u8 so we have to set its value like &0 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ADMIN_LEVEL` is never used [INFO] [stdout] --> PaaS/src/constants.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub static ADMIN_LEVEL: &u8 = &1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_LEVEL` is never used [INFO] [stdout] --> PaaS/src/constants.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub static USER_LEVEL: &u8 = &2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DELETED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub static DELETED: &str = "Deleted Successfully"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_FOUND_ROUTE` is never used [INFO] [stdout] --> PaaS/src/constants.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub static NOT_FOUND_ROUTE: &str = "Not Found Route"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_IMPLEMENTED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub static NOT_IMPLEMENTED: &str = "Not Implemented"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UPLOAD_PATH` is never used [INFO] [stdout] --> PaaS/src/constants.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | pub const UPLOAD_PATH: &str = "assets/images/group/"; //-- this the root of the project path [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEV_ACCESS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const DEV_ACCESS: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADMIN_ACCESS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub const ADMIN_ACCESS: u8 = 1; // God access [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IO_BUFFER_SIZE` is never used [INFO] [stdout] --> PaaS/src/constants.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | pub const IO_BUFFER_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KICK_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:55:11 [INFO] [stdout] | [INFO] [stdout] 55 | pub const KICK_STATUS: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEAD_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | pub const DEAD_STATUS: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THREE_PHASES_DISABILITY_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | pub const THREE_PHASES_DISABILITY_STATUS: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FULL_DISABILITY_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const FULL_DISABILITY_STATUS: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TWO_PHASES_SILENT_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | pub const TWO_PHASES_SILENT_STATUS: u8 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIX_PHASES_SILENT_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub const SIX_PHASES_SILENT_STATUS: u8 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHAINED_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | pub const CHAINED_STATUS: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHANGED_ROLL_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | pub const CHANGED_ROLL_STATUS: u8 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub const EXIT_STATUS: u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEVOTE_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | pub const DEVOTE_STATUS: u8 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NINE_PHASES_LATER_PRO_KILLER_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | pub const NINE_PHASES_LATER_PRO_KILLER_STATUS: u8 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_name` is never used [INFO] [stdout] --> PaaS/src/contexts/app.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | pub async fn set_name(&mut self, endpoint: &str){ //-- we must define self as mutable cause we want to change the name field [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_name` is never used [INFO] [stdout] --> PaaS/src/contexts/app.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | pub async fn get_name(&self) -> String{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Server<'a>{ //-- 'a is the lifetime of &[u8] which is the borrowed type of [u8] due to its unknown size at compile time [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Thread` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Thread{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Channel{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Permission` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Permission; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerMember` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct ServerMember; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelMember` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChannelMember; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Level` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Level; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Role` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Role; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Commands` is never used [INFO] [stdout] --> PaaS/src/contexts/bot.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum Commands{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APP_NAME` is never used [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | const APP_NAME: &str = "Rafless"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NewJob` is never constructed [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 82 | enum Message { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 83 | NewJob(Job), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `execute` is never used [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn execute(&self, f: F) where F: FnOnce() + Send + 'static { //-- calling this method means send the incoming task from the pr... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn new(id: Uuid, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn main(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_payment` is never used [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn process_payment(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/auth.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/auth.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/event.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/event.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/game.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/game.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/nft.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/nft.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NTHREADS` should have a snake case name [INFO] [stdout] --> PaaS/src/utils.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | let NTHREADS: usize = 4; // number of threads inside the pool [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `nthreads` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NJOBS` should have a snake case name [INFO] [stdout] --> PaaS/src/utils.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let NJOBS: usize = mat.len(); // number of tasks of the process (incoming x_train matrix) to share each one between threads inside th... [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `njobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::iter::Iterator::collect` that must be used [INFO] [stdout] --> PaaS/src/utils.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | ids.into_iter().map(|s_cols| mult_of_all_sum_cols *= s_cols).collect::>(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetMongoDbInstance` should have a snake case name [INFO] [stdout] --> PaaS/src/contexts/app.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | pub async fn GetMongoDbInstance(&self) -> Client{ //-- it'll return an instance of the mongodb client - we set the first argument to ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_mongo_db_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 233 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> PaaS/src/main.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut raw_pointer_to_server = &mut auth_server as *mut Server; //-- taking a mutable raw p... [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] --> PaaS/src/main.rs:359:13 [INFO] [stdout] | [INFO] [stdout] 359 | ... let mut raw_pointer_to_server = &mut event_server as *mut Server; //-- taking a mutable ra... [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] --> PaaS/src/main.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | ... let mut raw_pointer_to_server = &mut game_server as *mut Server; //-- taking a mutable raw... [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] --> PaaS/src/main.rs:447:13 [INFO] [stdout] | [INFO] [stdout] 447 | ... let mut raw_pointer_to_server = &mut nft_server as *mut Server; //-- taking a mutable raw poin... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `async_gen_random_idx` is never used [INFO] [stdout] --> PaaS/src/utils.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn async_gen_random_idx(idx: usize) -> BoxFuture<'static, usize>{ // NOTE - pub type BoxFuture<'a, T> = Pin PaaS/src/utils.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn string_to_static_str(s: String) -> &'static str { //-- the lifetime of the return str is static and is valid as long as the entire... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upload_asset` is never used [INFO] [stdout] --> PaaS/src/utils.rs:134:14 [INFO] [stdout] | [INFO] [stdout] 134 | pub async fn upload_asset(path: &str, payload: &[u8]){ //-- mapping the incoming utf8 bytes payload into a file [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `forward` is never used [INFO] [stdout] --> PaaS/src/utils.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn forward(x_train: Arc>>) -> f64{ //-- without &mut self would be an associated function not a method [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Context` is never used [INFO] [stdout] --> PaaS/src/utils.rs:307:10 [INFO] [stdout] | [INFO] [stdout] 307 | pub type Context<'a, Pack> = Unpack<'a, Pack, SIZE>; //-- Pack type will be bounded to Interface trait and 'l lifetime [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_none_trait` is never used [INFO] [stdout] --> PaaS/src/utils.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn return_none_trait() -> () where T: Interface{ // NOTE - `T` type must be bound to Interface trait [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_impl_trait` is never used [INFO] [stdout] --> PaaS/src/utils.rs:322:4 [INFO] [stdout] | [INFO] [stdout] 322 | fn return_impl_trait() -> impl Interface { // NOTE - returning impl Trait from function means we're implementing the trait for the object... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_box_trait` is never used [INFO] [stdout] --> PaaS/src/utils.rs:326:4 [INFO] [stdout] | [INFO] [stdout] 326 | fn return_box_trait() -> Box { // NOTE - returning Box from function means we're returning a struct i... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> PaaS/src/utils.rs:529:5 [INFO] [stdout] | [INFO] [stdout] 528 | pub enum Storagekey{ //-- defining an enum based unique storage key for every our collections to avoid collection collision which might b... [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 529 | Sales, ////////---------➔ converting this to vector (Storagekey::Sales.try_to_vec().unwrap()) gives us an array of [0] which is the u... [INFO] [stdout] | ^^^^^ [INFO] [stdout] 530 | ByOwnerId, ////////---------➔ converting this to vector (Storagekey::ByOwnerId.try_to_vec().unwrap()) gives us an array of [1] which ... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 531 | ByOwnerIdInner { account_id_hash: [u8; 32] }, //-- 32 bytes or 256 bits (cause it's an array of 32 elements of type u8 which is 32 el... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 532 | ByNFTContractId, ////////---------➔ converting this to vector (Storagekey::ByNFTContractId.try_to_vec().unwrap()) gives us an array o... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 533 | ByNFTContractIdInner { account_id_hash: [u8; 2] }, //-- 2 bytes or 256 bits (cause it's an array of 2 elements of type u8 which is 2 ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 534 | ByNFTTokenType, ////////---------➔ converting this to vector (Storagekey::ByNFTTokenType.try_to_vec().unwrap()) gives us an array of ... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 535 | ByNFTTokenTypeInner { token_type_hash: [u8; 32] }, //-- 32 bytes or 256 bits (cause it's an array of 32 elements of type u8 which is ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 536 | FTTokenIds, ////////---------➔ converting this to vector (Storagekey::FTTokenIds.try_to_vec().unwrap()) gives us an array of [7] whic... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 537 | StorageDeposits, ////////---------➔ converting this to vector (Storagekey::StorageDeposits.try_to_vec().unwrap()) gives us an array o... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 538 | Collection, ////////---------➔ converting this to vector (Storagekey::Collection.try_to_vec().unwrap()) gives us an array of [9] whic... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> PaaS/src/utils.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_struct` is never used [INFO] [stdout] --> PaaS/src/utils.rs:380:8 [INFO] [stdout] | [INFO] [stdout] 380 | fn ref_struct(num_thread: &u8) -> &Pack{ //-- returning ref from function to a pre allocated data type (not inside the function) Pack... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_str_other_pointer_lifetime` is never used [INFO] [stdout] --> PaaS/src/utils.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | pub fn ref_str_other_pointer_lifetime(status: &u8) -> &str{ //-- in this case we're good to return the pointer from the function or c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_to_str_other_self_lifetime` is never used [INFO] [stdout] --> PaaS/src/utils.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn ref_to_str_other_self_lifetime(&self) -> &str{ //-- in this case we're good to return the pointer from the function or send a ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_to_str_specific_lifetime` is never used [INFO] [stdout] --> PaaS/src/utils.rs:401:12 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn ref_to_str_specific_lifetime<'a>(status: u8) -> &'a str{ //-- in this case we're good to return the pointer from the function ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ref_to_str_static` is never used [INFO] [stdout] --> PaaS/src/utils.rs:407:12 [INFO] [stdout] | [INFO] [stdout] 407 | pub fn ref_to_str_static() -> &'static str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even` is never used [INFO] [stdout] --> PaaS/src/utils.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 595 | pub fn even(x: i32) -> bool{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `odd` is never used [INFO] [stdout] --> PaaS/src/utils.rs:599:12 [INFO] [stdout] | [INFO] [stdout] 599 | pub fn odd(x: i32) -> bool{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GenericError` is never used [INFO] [stdout] --> PaaS/src/constants.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type GenericError = Box; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DB` is never used [INFO] [stdout] --> PaaS/src/constants.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub static mut DB: Option> = None; // NOTE - use of mutable static is unsafe and requires unsafe function or block... [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INTERNAL_SERVER_ERROR` is never used [INFO] [stdout] --> PaaS/src/constants.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub static INTERNAL_SERVER_ERROR: &str = "Interal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WRONG_CREDENTIALS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub static WRONG_CREDENTIALS: &str = "Wrong Credentials"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WELCOME` is never used [INFO] [stdout] --> PaaS/src/constants.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub static WELCOME: &str = "Welcome Home"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_ACCEPTABLE` is never used [INFO] [stdout] --> PaaS/src/constants.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub static NOT_ACCEPTABLE: &str = "Not Acceptable"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BAD_REQUEST` is never used [INFO] [stdout] --> PaaS/src/constants.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub static BAD_REQUEST: &str = "Bad Request"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNAUTHORISED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub static UNAUTHORISED: &str = "Unauthorised"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `METHOD_NOT_ALLOWED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub static METHOD_NOT_ALLOWED: &str = "Method Not Allowed"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DEV_LEVEL` is never used [INFO] [stdout] --> PaaS/src/constants.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub static DEV_LEVEL: &u8 = &0; //-- DEV_LEVEL is of type &u8 so we have to set its value like &0 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ADMIN_LEVEL` is never used [INFO] [stdout] --> PaaS/src/constants.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub static ADMIN_LEVEL: &u8 = &1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_LEVEL` is never used [INFO] [stdout] --> PaaS/src/constants.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub static USER_LEVEL: &u8 = &2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DELETED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub static DELETED: &str = "Deleted Successfully"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_FOUND_ROUTE` is never used [INFO] [stdout] --> PaaS/src/constants.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub static NOT_FOUND_ROUTE: &str = "Not Found Route"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_IMPLEMENTED` is never used [INFO] [stdout] --> PaaS/src/constants.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub static NOT_IMPLEMENTED: &str = "Not Implemented"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UPLOAD_PATH` is never used [INFO] [stdout] --> PaaS/src/constants.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | pub const UPLOAD_PATH: &str = "assets/images/group/"; //-- this the root of the project path [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEV_ACCESS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const DEV_ACCESS: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADMIN_ACCESS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub const ADMIN_ACCESS: u8 = 1; // God access [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IO_BUFFER_SIZE` is never used [INFO] [stdout] --> PaaS/src/constants.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | pub const IO_BUFFER_SIZE: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KICK_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:55:11 [INFO] [stdout] | [INFO] [stdout] 55 | pub const KICK_STATUS: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEAD_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | pub const DEAD_STATUS: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THREE_PHASES_DISABILITY_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | pub const THREE_PHASES_DISABILITY_STATUS: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FULL_DISABILITY_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const FULL_DISABILITY_STATUS: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TWO_PHASES_SILENT_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | pub const TWO_PHASES_SILENT_STATUS: u8 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIX_PHASES_SILENT_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub const SIX_PHASES_SILENT_STATUS: u8 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHAINED_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | pub const CHAINED_STATUS: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHANGED_ROLL_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | pub const CHANGED_ROLL_STATUS: u8 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub const EXIT_STATUS: u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEVOTE_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | pub const DEVOTE_STATUS: u8 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NINE_PHASES_LATER_PRO_KILLER_STATUS` is never used [INFO] [stdout] --> PaaS/src/constants.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | pub const NINE_PHASES_LATER_PRO_KILLER_STATUS: u8 = 11; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_name` is never used [INFO] [stdout] --> PaaS/src/contexts/app.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | pub async fn set_name(&mut self, endpoint: &str){ //-- we must define self as mutable cause we want to change the name field [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_name` is never used [INFO] [stdout] --> PaaS/src/contexts/app.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | pub async fn get_name(&self) -> String{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Server<'a>{ //-- 'a is the lifetime of &[u8] which is the borrowed type of [u8] due to its unknown size at compile time [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Thread` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Thread{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Channel` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Channel{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Permission` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Permission; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerMember` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct ServerMember; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelMember` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChannelMember; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Level` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Level; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Role` is never constructed [INFO] [stdout] --> PaaS/src/contexts/bot.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Role; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Commands` is never used [INFO] [stdout] --> PaaS/src/contexts/bot.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum Commands{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APP_NAME` is never used [INFO] [stdout] --> PaaS/src/contexts/rafael.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | const APP_NAME: &str = "Rafless"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NewJob` is never constructed [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 82 | enum Message { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 83 | NewJob(Job), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `execute` is never used [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn execute(&self, f: F) where F: FnOnce() + Send + 'static { //-- calling this method means send the incoming task from the pr... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> PaaS/src/contexts/scheduler.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn new(id: Uuid, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> PaaS/src/controllers/event/delete.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn main(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_payment` is never used [INFO] [stdout] --> PaaS/src/controllers/event/reserve.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn process_payment(db: Option<&Client>, api: ctx::app::Api) -> GenericResult, hyper::Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/auth.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/auth.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/event.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/event.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/game.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/game.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_client` is never used [INFO] [stdout] --> PaaS/src/services/nft.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn add_client(&mut self, client: SocketAddr) -> Self{ // NOTE - runtime object has a add_client() method in which a peer address ... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_client` is never used [INFO] [stdout] --> PaaS/src/services/nft.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn remove_client(&mut self, client_index: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NTHREADS` should have a snake case name [INFO] [stdout] --> PaaS/src/utils.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | let NTHREADS: usize = 4; // number of threads inside the pool [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `nthreads` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NJOBS` should have a snake case name [INFO] [stdout] --> PaaS/src/utils.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let NJOBS: usize = mat.len(); // number of tasks of the process (incoming x_train matrix) to share each one between threads inside th... [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `njobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::iter::Iterator::collect` that must be used [INFO] [stdout] --> PaaS/src/utils.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | ids.into_iter().map(|s_cols| mult_of_all_sum_cols *= s_cols).collect::>(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetMongoDbInstance` should have a snake case name [INFO] [stdout] --> PaaS/src/contexts/app.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | pub async fn GetMongoDbInstance(&self) -> Client{ //-- it'll return an instance of the mongodb client - we set the first argument to ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_mongo_db_instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 233 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 50s [INFO] running `Command { std: "docker" "inspect" "927476e5ad4c643ad18790b9a02bd79159abf7fb60702c2181a35f7471c34e08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "927476e5ad4c643ad18790b9a02bd79159abf7fb60702c2181a35f7471c34e08", kill_on_drop: false }` [INFO] [stdout] 927476e5ad4c643ad18790b9a02bd79159abf7fb60702c2181a35f7471c34e08