[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] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae94d4aeb1624d1230f1cf50facaa03e4283cbb8 [INFO] building wildonion/auther against master#c2804e6ec2c29a5c7368600ea173b890e2655c3d for pr-97334-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fauther" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wildonion/auther on toolchain c2804e6ec2c29a5c7368600ea173b890e2655c3d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "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-6/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" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_with v1.12.0 [INFO] [stderr] Downloaded bson v2.1.0 [INFO] [stderr] Downloaded mongodb v2.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b61e42c30c7dd57d7a952cfbb1ce04e83d99805ffbbbb5ea68a3587064ba9c66 [INFO] running `Command { std: "docker" "start" "-a" "b61e42c30c7dd57d7a952cfbb1ce04e83d99805ffbbbb5ea68a3587064ba9c66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b61e42c30c7dd57d7a952cfbb1ce04e83d99805ffbbbb5ea68a3587064ba9c66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b61e42c30c7dd57d7a952cfbb1ce04e83d99805ffbbbb5ea68a3587064ba9c66", kill_on_drop: false }` [INFO] [stdout] b61e42c30c7dd57d7a952cfbb1ce04e83d99805ffbbbb5ea68a3587064ba9c66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22c094236aa64ef83773ee5cbd08d025a0a28ab21e59ce41e40f8ad9042ff3c2 [INFO] running `Command { std: "docker" "start" "-a" "22c094236aa64ef83773ee5cbd08d025a0a28ab21e59ce41e40f8ad9042ff3c2", 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] Compiling 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] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [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] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling async-task v4.1.0 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling num_threads v0.1.3 [INFO] [stderr] Compiling time-macros v0.2.3 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling pem v1.0.2 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [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] 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] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling async-lock v2.5.0 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling blake2b_simd v1.0.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling crossbeam-channel v0.5.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling rust-argon2 v1.0.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling brotli v3.3.3 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling blocking v1.1.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling pbkdf2 v0.8.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling quickcheck v1.0.3 [INFO] [stderr] Compiling 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 enum-as-inner v0.3.4 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [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 derivative v2.2.0 [INFO] [stderr] Compiling actix_derive v0.6.0 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling tracing v0.1.31 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling os_info v3.2.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling serde_with_macros v1.5.1 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling async-global-executor v2.0.3 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling simple_asn1 v0.6.1 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling trust-dns-proto v0.20.4 [INFO] [stderr] Compiling tokio-util v0.7.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling actix-rt v2.6.0 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix v0.13.0 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling serde_with v1.12.0 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling trust-dns-resolver v0.20.4 [INFO] [stderr] Compiling actix-http v2.2.2 [INFO] [stderr] Compiling jsonwebtoken v8.0.1 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling bson v2.1.0 [INFO] [stderr] Compiling async-std-resolver v0.20.4 [INFO] [stderr] Compiling mongodb v2.1.0 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.3 [INFO] [stderr] Compiling actix-cors v0.5.4 [INFO] [stderr] Compiling 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: `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: `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] = note: `#[warn(unused_variables)]` on by default [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] [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: 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 1m 38s [INFO] running `Command { std: "docker" "inspect" "22c094236aa64ef83773ee5cbd08d025a0a28ab21e59ce41e40f8ad9042ff3c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22c094236aa64ef83773ee5cbd08d025a0a28ab21e59ce41e40f8ad9042ff3c2", kill_on_drop: false }` [INFO] [stdout] 22c094236aa64ef83773ee5cbd08d025a0a28ab21e59ce41e40f8ad9042ff3c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+c2804e6ec2c29a5c7368600ea173b890e2655c3d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7748ecebc63a7a9c439eb00d35125327aa387386e2d41d97a161346e82a4234 [INFO] running `Command { std: "docker" "start" "-a" "f7748ecebc63a7a9c439eb00d35125327aa387386e2d41d97a161346e82a4234", kill_on_drop: false }` [INFO] [stderr] Compiling 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: `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: `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] = note: `#[warn(unused_variables)]` on by default [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] [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: 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 test [unoptimized + debuginfo] target(s) in 3.54s [INFO] running `Command { std: "docker" "inspect" "f7748ecebc63a7a9c439eb00d35125327aa387386e2d41d97a161346e82a4234", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7748ecebc63a7a9c439eb00d35125327aa387386e2d41d97a161346e82a4234", kill_on_drop: false }` [INFO] [stdout] f7748ecebc63a7a9c439eb00d35125327aa387386e2d41d97a161346e82a4234