[INFO] cloning repository https://github.com/wildonion/auther [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wildonion/auther" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fauther", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fauther'... [INFO] updating cached repository https://github.com/wildonion/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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/auther [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] ae94d4aeb1624d1230f1cf50facaa03e4283cbb8 [INFO] checking wildonion/auther against master#af7ab3447079fddc51c6c7749b160d24769f7c16 for pr-99413 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fauther" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wildonion/auther on toolchain af7ab3447079fddc51c6c7749b160d24769f7c16 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af7ab3447079fddc51c6c7749b160d24769f7c16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wildonion/auther [INFO] finished tweaking git repo https://github.com/wildonion/auther [INFO] tweaked toml for git repo https://github.com/wildonion/auther written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/wildonion/auther already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af7ab3447079fddc51c6c7749b160d24769f7c16" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+af7ab3447079fddc51c6c7749b160d24769f7c16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 75e9baae4d4e284defa7401c071461219e11893dab231f752fa46b9e3ae69870 [INFO] running `Command { std: "docker" "start" "-a" "75e9baae4d4e284defa7401c071461219e11893dab231f752fa46b9e3ae69870", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75e9baae4d4e284defa7401c071461219e11893dab231f752fa46b9e3ae69870", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75e9baae4d4e284defa7401c071461219e11893dab231f752fa46b9e3ae69870", kill_on_drop: false }` [INFO] [stdout] 75e9baae4d4e284defa7401c071461219e11893dab231f752fa46b9e3ae69870 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+af7ab3447079fddc51c6c7749b160d24769f7c16" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbe4b518d32cf08d1864b0ffa0ba867abc96c7568da12be55a68b4c4f4abc009 [INFO] running `Command { std: "docker" "start" "-a" "bbe4b518d32cf08d1864b0ffa0ba867abc96c7568da12be55a68b4c4f4abc009", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking copyless v0.1.5 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking cache-padded v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking event-listener v2.5.2 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking async-task v4.1.0 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Checking data-encoding v2.3.2 [INFO] [stderr] Compiling time-macros v0.2.3 [INFO] [stderr] Checking num_threads v0.1.3 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking tracing-core v0.1.22 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Checking bytestring v1.0.0 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking pem v1.0.2 [INFO] [stderr] Checking rustls-pemfile v0.2.1 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Checking async-mutex v1.4.0 [INFO] [stderr] Checking async-lock v2.5.0 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking blake2b_simd v1.0.0 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking brotli v3.3.3 [INFO] [stderr] Checking crossbeam-channel v0.5.2 [INFO] [stderr] Checking rust-argon2 v1.0.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking flate2 v1.0.22 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking pbkdf2 v0.8.0 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking async-executor v1.4.1 [INFO] [stderr] Checking blocking v1.1.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Checking time v0.3.7 [INFO] [stderr] Compiling darling_core v0.13.1 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling typed-builder v0.9.1 [INFO] [stderr] Compiling actix_derive v0.6.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling serde_with_macros v1.5.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking tracing v0.1.31 [INFO] [stderr] Checking polling v2.2.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking os_info v3.2.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking pin-project v0.4.29 [INFO] [stderr] Checking simple_asn1 v0.6.1 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking async-io v1.6.0 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking async-global-executor v2.0.3 [INFO] [stderr] Checking async-std v1.10.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking trust-dns-proto v0.19.7 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking trust-dns-proto v0.20.4 [INFO] [stderr] Checking actix-rt v2.6.0 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-util v0.7.0 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking actix-utils v2.0.0 [INFO] [stderr] Checking actix v0.13.0 [INFO] [stderr] Checking actix-server v1.0.4 [INFO] [stderr] Checking actix-tls v2.0.0 [INFO] [stderr] Checking actix-testing v1.0.1 [INFO] [stderr] Checking trust-dns-resolver v0.19.7 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking trust-dns-resolver v0.20.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking actix-router v0.2.7 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking serde_with v1.12.0 [INFO] [stderr] Checking async-std-resolver v0.20.4 [INFO] [stderr] Checking jsonwebtoken v8.0.1 [INFO] [stderr] Checking bson v2.1.0 [INFO] [stderr] Checking actix-http v2.2.2 [INFO] [stderr] Checking mongodb v2.1.0 [INFO] [stderr] Checking awc v2.0.3 [INFO] [stderr] Checking actix-web v3.3.3 [INFO] [stderr] Checking actix-cors v0.5.4 [INFO] [stderr] Checking auther v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error`, `info` [INFO] [stdout] --> src/middlewares.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | 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 imports: `error`, `info` [INFO] [stdout] --> src/middlewares.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | 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 imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> src/apis/auth.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- based on orphan rule TryStreamExt trait is required to use try_next()... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> src/apis/auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use bytes::Buf; //-- based on orphan rule it'll be needed to call the reader() method on the whole_body buffer [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stdout] --> src/apis/auth.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- based on orphan rule TryStreamExt trait is required to use try_next()... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Buf` [INFO] [stdout] --> src/apis/auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use bytes::Buf; //-- based on orphan rule it'll be needed to call the reader() method on the whole_body buffer [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `io_buffer_size` [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | 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] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | 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] --> src/utils.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let db_username = env::var("DB_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] --> src/utils.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let db_password = env::var("DB_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: `username` [INFO] [stdout] --> src/apis/auth.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let username = token_data.claims.username; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/apis/auth.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | async fn login(req: HttpRequest, user_info: web::Json) -> Result{ [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] --> src/apis/auth.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | async fn signup(req: HttpRequest, user_info: web::Json) -> Result{ [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] --> src/apis/auth.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | 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: `io_buffer_size` [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | 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] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | 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] --> src/utils.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let db_username = env::var("DB_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] --> src/utils.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let db_password = env::var("DB_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: `username` [INFO] [stdout] --> src/apis/auth.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let username = token_data.claims.username; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/apis/auth.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | async fn login(req: HttpRequest, user_info: web::Json) -> Result{ [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] --> src/apis/auth.rs:179:17 [INFO] [stdout] | [INFO] [stdout] 179 | async fn signup(req: HttpRequest, user_info: web::Json) -> Result{ [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] --> src/apis/auth.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | 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: type alias `GenericError` is never used [INFO] [stdout] --> src/constants.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type GenericError = Box; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INTERNAL_SERVER_ERROR` is never used [INFO] [stdout] --> src/constants.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub static INTERNAL_SERVER_ERROR: &str = "Interal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WELCOME` is never used [INFO] [stdout] --> src/constants.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub static WELCOME: &str = "Welcome Home"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FORBIDDEN` is never used [INFO] [stdout] --> src/constants.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub static FORBIDDEN: &str = "Forbidden"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_FOUND_ROUTE` is never used [INFO] [stdout] --> src/constants.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub static NOT_FOUND_ROUTE: &str = "Not Found Route"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_ACCEPTABLE` is never used [INFO] [stdout] --> src/constants.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub static NOT_ACCEPTABLE: &str = "Not Acceptable"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BAD_REQUEST` is never used [INFO] [stdout] --> src/constants.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static BAD_REQUEST: &str = "Bad Request"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `METHOD_NOT_ALLOWED` is never used [INFO] [stdout] --> src/constants.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub static METHOD_NOT_ALLOWED: &str = "Method Not Allowed"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_FOUND_DOCUMENT` is never used [INFO] [stdout] --> src/constants.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub static NOT_FOUND_DOCUMENT: &str = "Not Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FOUND_DOCUMENT` is never used [INFO] [stdout] --> src/constants.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub static FOUND_DOCUMENT: &str = "Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INSERTED` is never used [INFO] [stdout] --> src/constants.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub static INSERTED: &str = "Inserted Successfully"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UPDATED` is never used [INFO] [stdout] --> src/constants.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub static UPDATED: &str = "Updated Successfully"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FETCHED` is never used [INFO] [stdout] --> src/constants.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub static FETCHED: &str = "Fetched Successfully"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WRONG_CREDENTIALS` is never used [INFO] [stdout] --> src/constants.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub static WRONG_CREDENTIALS: &str = "Wrong Credentials"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ACCESS_DENIED` is never used [INFO] [stdout] --> src/constants.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub static ACCESS_DENIED: &str = "Access Denied"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOTFOUND_ROUTE` is never used [INFO] [stdout] --> src/constants.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub static NOTFOUND_ROUTE: &str = "Not Found"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNAUTHORISED` is never used [INFO] [stdout] --> src/constants.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub static UNAUTHORISED: &str = "Unauthorised"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DEV_LEVEL` is never used [INFO] [stdout] --> src/constants.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | 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] --> src/constants.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub static ADMIN_LEVEL: &u8 = &1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_LEVEL` is never used [INFO] [stdout] --> src/constants.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub static USER_LEVEL: &u8 = &2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Off` is never constructed [INFO] [stdout] --> src/contexts/app.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 113 | pub enum Mode{ [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 114 | On, [INFO] [stdout] 115 | Off, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/contexts/app.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | pub async fn new(request: Option, response: Option) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `post` is never used [INFO] [stdout] --> src/contexts/app.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn post(mut self, endpoint: &str, mut cb: F) -> Result //-- defining self (an instance of the ob... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/contexts/app.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn get(mut self, endpoint: &str, mut cb: F) -> Result //-- defining self (an instance of the obj... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetMongoDbInstance` should have a snake case name [INFO] [stdout] --> src/contexts/app.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn GetMongoDbInstance(&self) -> Client{ //-- it'll return an instance of the mongodb client [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_mongo_db_instance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GenericError` is never used [INFO] [stdout] --> src/constants.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type GenericError = Box; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INTERNAL_SERVER_ERROR` is never used [INFO] [stdout] --> src/constants.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub static INTERNAL_SERVER_ERROR: &str = "Interal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WELCOME` is never used [INFO] [stdout] --> src/constants.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub static WELCOME: &str = "Welcome Home"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FORBIDDEN` is never used [INFO] [stdout] --> src/constants.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub static FORBIDDEN: &str = "Forbidden"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_FOUND_ROUTE` is never used [INFO] [stdout] --> src/constants.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub static NOT_FOUND_ROUTE: &str = "Not Found Route"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_ACCEPTABLE` is never used [INFO] [stdout] --> src/constants.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub static NOT_ACCEPTABLE: &str = "Not Acceptable"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `BAD_REQUEST` is never used [INFO] [stdout] --> src/constants.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static BAD_REQUEST: &str = "Bad Request"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `METHOD_NOT_ALLOWED` is never used [INFO] [stdout] --> src/constants.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub static METHOD_NOT_ALLOWED: &str = "Method Not Allowed"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOT_FOUND_DOCUMENT` is never used [INFO] [stdout] --> src/constants.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub static NOT_FOUND_DOCUMENT: &str = "Not Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FOUND_DOCUMENT` is never used [INFO] [stdout] --> src/constants.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub static FOUND_DOCUMENT: &str = "Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INSERTED` is never used [INFO] [stdout] --> src/constants.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub static INSERTED: &str = "Inserted Successfully"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UPDATED` is never used [INFO] [stdout] --> src/constants.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub static UPDATED: &str = "Updated Successfully"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `FETCHED` is never used [INFO] [stdout] --> src/constants.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub static FETCHED: &str = "Fetched Successfully"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WRONG_CREDENTIALS` is never used [INFO] [stdout] --> src/constants.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub static WRONG_CREDENTIALS: &str = "Wrong Credentials"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ACCESS_DENIED` is never used [INFO] [stdout] --> src/constants.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub static ACCESS_DENIED: &str = "Access Denied"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NOTFOUND_ROUTE` is never used [INFO] [stdout] --> src/constants.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub static NOTFOUND_ROUTE: &str = "Not Found"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNAUTHORISED` is never used [INFO] [stdout] --> src/constants.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub static UNAUTHORISED: &str = "Unauthorised"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DEV_LEVEL` is never used [INFO] [stdout] --> src/constants.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | 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] --> src/constants.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub static ADMIN_LEVEL: &u8 = &1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_LEVEL` is never used [INFO] [stdout] --> src/constants.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub static USER_LEVEL: &u8 = &2; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Off` is never constructed [INFO] [stdout] --> src/contexts/app.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 113 | pub enum Mode{ [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 114 | On, [INFO] [stdout] 115 | Off, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/contexts/app.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | pub async fn new(request: Option, response: Option) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `post` is never used [INFO] [stdout] --> src/contexts/app.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn post(mut self, endpoint: &str, mut cb: F) -> Result //-- defining self (an instance of the ob... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get` is never used [INFO] [stdout] --> src/contexts/app.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn get(mut self, endpoint: &str, mut cb: F) -> Result //-- defining self (an instance of the obj... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetMongoDbInstance` should have a snake case name [INFO] [stdout] --> src/contexts/app.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn GetMongoDbInstance(&self) -> Client{ //-- it'll return an instance of the mongodb client [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_mongo_db_instance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 54.30s [INFO] running `Command { std: "docker" "inspect" "bbe4b518d32cf08d1864b0ffa0ba867abc96c7568da12be55a68b4c4f4abc009", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbe4b518d32cf08d1864b0ffa0ba867abc96c7568da12be55a68b4c4f4abc009", kill_on_drop: false }` [INFO] [stdout] bbe4b518d32cf08d1864b0ffa0ba867abc96c7568da12be55a68b4c4f4abc009