[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] testing wildonion/auther against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwildonion%2Fauther" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wildonion/auther on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-5/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" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "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] e75a4b3df7578ffa31aaca90f75df5ecdf72abd5f1afbdfe971429701ffb6c1d [INFO] running `Command { std: "docker" "start" "-a" "e75a4b3df7578ffa31aaca90f75df5ecdf72abd5f1afbdfe971429701ffb6c1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e75a4b3df7578ffa31aaca90f75df5ecdf72abd5f1afbdfe971429701ffb6c1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e75a4b3df7578ffa31aaca90f75df5ecdf72abd5f1afbdfe971429701ffb6c1d", kill_on_drop: false }` [INFO] [stdout] e75a4b3df7578ffa31aaca90f75df5ecdf72abd5f1afbdfe971429701ffb6c1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--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] 800cb3de6e7c443759806c288a299ea0537663a31d7ce64168698ffc5ab1701a [INFO] running `Command { std: "docker" "start" "-a" "800cb3de6e7c443759806c288a299ea0537663a31d7ce64168698ffc5ab1701a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling num_threads v0.1.3 [INFO] [stderr] Compiling time-macros v0.2.3 [INFO] [stderr] Compiling arrayvec v0.7.2 [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 num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [INFO] [stderr] Compiling pem v1.0.2 [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 blake2b_simd v1.0.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling blocking v1.1.0 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling async-trait v0.1.52 [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 darling_core v0.13.1 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling typed-builder v0.9.1 [INFO] [stderr] Compiling actix_derive v0.6.0 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling rust-argon2 v1.0.0 [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 brotli v3.3.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling atty v0.2.14 [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 pbkdf2 v0.8.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [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 actix-router v0.2.7 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling os_info v3.2.0 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling pin-project v0.4.29 [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 webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling quickcheck v1.0.3 [INFO] [stderr] Compiling bson v2.1.0 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling async-global-executor v2.0.3 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling serde_with_macros v1.5.1 [INFO] [stderr] Compiling time v0.3.7 [INFO] [stderr] Compiling simple_asn1 v0.6.1 [INFO] [stderr] Compiling jsonwebtoken v8.0.1 [INFO] [stderr] Compiling serde_with v1.12.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling actix-rt v1.1.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 actix-utils v2.0.0 [INFO] [stderr] Compiling trust-dns-proto v0.20.4 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling tokio-util v0.7.0 [INFO] [stderr] Compiling actix-rt v2.6.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling actix v0.13.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling trust-dns-resolver v0.20.4 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling async-std-resolver v0.20.4 [INFO] [stderr] Compiling mongodb v2.1.0 [INFO] [stderr] Compiling actix-http v2.2.2 [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: `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 is never used: `GenericError` [INFO] [stdout] --> src/constants.rs:7:1 [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 is never used: `INTERNAL_SERVER_ERROR` [INFO] [stdout] --> src/constants.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub static INTERNAL_SERVER_ERROR: &str = "Interal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WELCOME` [INFO] [stdout] --> src/constants.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub static WELCOME: &str = "Welcome Home"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `FORBIDDEN` [INFO] [stdout] --> src/constants.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub static FORBIDDEN: &str = "Forbidden"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOT_FOUND_ROUTE` [INFO] [stdout] --> src/constants.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub static NOT_FOUND_ROUTE: &str = "Not Found Route"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOT_ACCEPTABLE` [INFO] [stdout] --> src/constants.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static NOT_ACCEPTABLE: &str = "Not Acceptable"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BAD_REQUEST` [INFO] [stdout] --> src/constants.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub static BAD_REQUEST: &str = "Bad Request"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `METHOD_NOT_ALLOWED` [INFO] [stdout] --> src/constants.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub static METHOD_NOT_ALLOWED: &str = "Method Not Allowed"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOT_FOUND_DOCUMENT` [INFO] [stdout] --> src/constants.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub static NOT_FOUND_DOCUMENT: &str = "Not Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `FOUND_DOCUMENT` [INFO] [stdout] --> src/constants.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub static FOUND_DOCUMENT: &str = "Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `INSERTED` [INFO] [stdout] --> src/constants.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub static INSERTED: &str = "Inserted Successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `UPDATED` [INFO] [stdout] --> src/constants.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub static UPDATED: &str = "Updated Successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `FETCHED` [INFO] [stdout] --> src/constants.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub static FETCHED: &str = "Fetched Successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WRONG_CREDENTIALS` [INFO] [stdout] --> src/constants.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub static WRONG_CREDENTIALS: &str = "Wrong Credentials"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `ACCESS_DENIED` [INFO] [stdout] --> src/constants.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub static ACCESS_DENIED: &str = "Access Denied"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOTFOUND_ROUTE` [INFO] [stdout] --> src/constants.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub static NOTFOUND_ROUTE: &str = "Not Found"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `UNAUTHORISED` [INFO] [stdout] --> src/constants.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub static UNAUTHORISED: &str = "Unauthorised"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `DEV_LEVEL` [INFO] [stdout] --> src/constants.rs:29:1 [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 is never used: `ADMIN_LEVEL` [INFO] [stdout] --> src/constants.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | pub static ADMIN_LEVEL: &u8 = &1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `USER_LEVEL` [INFO] [stdout] --> src/constants.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub static USER_LEVEL: &u8 = &2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [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 is never used: `post` [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 is never used: `get` [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: variant is never constructed: `Off` [INFO] [stdout] --> src/contexts/app.rs:115:5 [INFO] [stdout] | [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] --> src/contexts/app.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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 5m 50s [INFO] running `Command { std: "docker" "inspect" "800cb3de6e7c443759806c288a299ea0537663a31d7ce64168698ffc5ab1701a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "800cb3de6e7c443759806c288a299ea0537663a31d7ce64168698ffc5ab1701a", kill_on_drop: false }` [INFO] [stdout] 800cb3de6e7c443759806c288a299ea0537663a31d7ce64168698ffc5ab1701a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--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] dcf362f9201ad8bf35b82ae2d7bff8a14d01be978d29f410495d795dab03c3a9 [INFO] running `Command { std: "docker" "start" "-a" "dcf362f9201ad8bf35b82ae2d7bff8a14d01be978d29f410495d795dab03c3a9", 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: `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 is never used: `GenericError` [INFO] [stdout] --> src/constants.rs:7:1 [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 is never used: `INTERNAL_SERVER_ERROR` [INFO] [stdout] --> src/constants.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub static INTERNAL_SERVER_ERROR: &str = "Interal Server Error"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WELCOME` [INFO] [stdout] --> src/constants.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub static WELCOME: &str = "Welcome Home"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `FORBIDDEN` [INFO] [stdout] --> src/constants.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub static FORBIDDEN: &str = "Forbidden"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOT_FOUND_ROUTE` [INFO] [stdout] --> src/constants.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub static NOT_FOUND_ROUTE: &str = "Not Found Route"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOT_ACCEPTABLE` [INFO] [stdout] --> src/constants.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static NOT_ACCEPTABLE: &str = "Not Acceptable"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BAD_REQUEST` [INFO] [stdout] --> src/constants.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub static BAD_REQUEST: &str = "Bad Request"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `METHOD_NOT_ALLOWED` [INFO] [stdout] --> src/constants.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub static METHOD_NOT_ALLOWED: &str = "Method Not Allowed"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOT_FOUND_DOCUMENT` [INFO] [stdout] --> src/constants.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub static NOT_FOUND_DOCUMENT: &str = "Not Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `FOUND_DOCUMENT` [INFO] [stdout] --> src/constants.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub static FOUND_DOCUMENT: &str = "Found Document"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `INSERTED` [INFO] [stdout] --> src/constants.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub static INSERTED: &str = "Inserted Successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `UPDATED` [INFO] [stdout] --> src/constants.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub static UPDATED: &str = "Updated Successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `FETCHED` [INFO] [stdout] --> src/constants.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub static FETCHED: &str = "Fetched Successfully"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `WRONG_CREDENTIALS` [INFO] [stdout] --> src/constants.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub static WRONG_CREDENTIALS: &str = "Wrong Credentials"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `ACCESS_DENIED` [INFO] [stdout] --> src/constants.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub static ACCESS_DENIED: &str = "Access Denied"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NOTFOUND_ROUTE` [INFO] [stdout] --> src/constants.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub static NOTFOUND_ROUTE: &str = "Not Found"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `UNAUTHORISED` [INFO] [stdout] --> src/constants.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub static UNAUTHORISED: &str = "Unauthorised"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `DEV_LEVEL` [INFO] [stdout] --> src/constants.rs:29:1 [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 is never used: `ADMIN_LEVEL` [INFO] [stdout] --> src/constants.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | pub static ADMIN_LEVEL: &u8 = &1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `USER_LEVEL` [INFO] [stdout] --> src/constants.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub static USER_LEVEL: &u8 = &2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [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 is never used: `post` [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 is never used: `get` [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: variant is never constructed: `Off` [INFO] [stdout] --> src/contexts/app.rs:115:5 [INFO] [stdout] | [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] --> src/contexts/app.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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 4.25s [INFO] running `Command { std: "docker" "inspect" "dcf362f9201ad8bf35b82ae2d7bff8a14d01be978d29f410495d795dab03c3a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcf362f9201ad8bf35b82ae2d7bff8a14d01be978d29f410495d795dab03c3a9", kill_on_drop: false }` [INFO] [stdout] dcf362f9201ad8bf35b82ae2d7bff8a14d01be978d29f410495d795dab03c3a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", 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] d8df5ac51fed6d4d546ad43b7e9dc84b66d7dfc7b67d7dcf18786f1f206527a0 [INFO] running `Command { std: "docker" "start" "-a" "d8df5ac51fed6d4d546ad43b7e9dc84b66d7dfc7b67d7dcf18786f1f206527a0", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `error`, `info` [INFO] [stderr] --> src/middlewares.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | use log::{info, error}; [INFO] [stderr] | ^^^^ ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `TryFutureExt`, `TryStreamExt`, `executor::block_on` [INFO] [stderr] --> src/apis/auth.rs:13:15 [INFO] [stderr] | [INFO] [stderr] 13 | use futures::{executor::block_on, TryFutureExt, TryStreamExt}; //-- based on orphan rule TryStreamExt trait is required to use try_next()... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `bytes::Buf` [INFO] [stderr] --> src/apis/auth.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use bytes::Buf; //-- based on orphan rule it'll be needed to call the reader() method on the whole_body buffer [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `io_buffer_size` [INFO] [stderr] --> src/main.rs:80:9 [INFO] [stderr] | [INFO] [stderr] 80 | let io_buffer_size = env::var("IO_BUFFER_SIZE").expect("⚠️ no io buffer size variable set").parse::().unwrap() as usize; //-- us... [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_io_buffer_size` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `environment` [INFO] [stderr] --> src/main.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | let environment = env::var("ENVIRONMENT").expect("⚠️ no environment variable set"); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_environment` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db_username` [INFO] [stderr] --> src/utils.rs:63:13 [INFO] [stderr] | [INFO] [stderr] 63 | let db_username = env::var("DB_USERNAME").expect("⚠️ no db username variable set"); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_username` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db_password` [INFO] [stderr] --> src/utils.rs:64:13 [INFO] [stderr] | [INFO] [stderr] 64 | let db_password = env::var("DB_PASSWORD").expect("⚠️ no db password variable set"); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_password` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `username` [INFO] [stderr] --> src/apis/auth.rs:33:17 [INFO] [stderr] | [INFO] [stderr] 33 | let username = token_data.claims.username; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/apis/auth.rs:95:16 [INFO] [stderr] | [INFO] [stderr] 95 | async fn login(req: HttpRequest, user_info: web::Json) -> Result{ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/apis/auth.rs:179:17 [INFO] [stderr] | [INFO] [stderr] 179 | async fn signup(req: HttpRequest, user_info: web::Json) -> Result{ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_doc` [INFO] [stderr] --> src/apis/auth.rs:190:14 [INFO] [stderr] | [INFO] [stderr] 190 | Some(user_doc) => { //-- if we find a user with this username we have to tell the user do a login [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_doc` [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `GenericError` [INFO] [stderr] --> src/constants.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub type GenericError = Box; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static is never used: `INTERNAL_SERVER_ERROR` [INFO] [stderr] --> src/constants.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | pub static INTERNAL_SERVER_ERROR: &str = "Interal Server Error"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `WELCOME` [INFO] [stderr] --> src/constants.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | pub static WELCOME: &str = "Welcome Home"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `FORBIDDEN` [INFO] [stderr] --> src/constants.rs:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | pub static FORBIDDEN: &str = "Forbidden"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `NOT_FOUND_ROUTE` [INFO] [stderr] --> src/constants.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | pub static NOT_FOUND_ROUTE: &str = "Not Found Route"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `NOT_ACCEPTABLE` [INFO] [stderr] --> src/constants.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | pub static NOT_ACCEPTABLE: &str = "Not Acceptable"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `BAD_REQUEST` [INFO] [stderr] --> src/constants.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub static BAD_REQUEST: &str = "Bad Request"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `METHOD_NOT_ALLOWED` [INFO] [stderr] --> src/constants.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | pub static METHOD_NOT_ALLOWED: &str = "Method Not Allowed"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `NOT_FOUND_DOCUMENT` [INFO] [stderr] --> src/constants.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | pub static NOT_FOUND_DOCUMENT: &str = "Not Found Document"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `FOUND_DOCUMENT` [INFO] [stderr] --> src/constants.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | pub static FOUND_DOCUMENT: &str = "Found Document"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `INSERTED` [INFO] [stderr] --> src/constants.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub static INSERTED: &str = "Inserted Successfully"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `UPDATED` [INFO] [stderr] --> src/constants.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | pub static UPDATED: &str = "Updated Successfully"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `FETCHED` [INFO] [stderr] --> src/constants.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | pub static FETCHED: &str = "Fetched Successfully"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `WRONG_CREDENTIALS` [INFO] [stderr] --> src/constants.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | pub static WRONG_CREDENTIALS: &str = "Wrong Credentials"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `ACCESS_DENIED` [INFO] [stderr] --> src/constants.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | pub static ACCESS_DENIED: &str = "Access Denied"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `NOTFOUND_ROUTE` [INFO] [stderr] --> src/constants.rs:27:1 [INFO] [stderr] | [INFO] [stderr] 27 | pub static NOTFOUND_ROUTE: &str = "Not Found"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `UNAUTHORISED` [INFO] [stderr] --> src/constants.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | pub static UNAUTHORISED: &str = "Unauthorised"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `DEV_LEVEL` [INFO] [stderr] --> src/constants.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | pub static DEV_LEVEL: &u8 = &0; //-- DEV_LEVEL is of type &u8 so we have to set its value like &0 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `ADMIN_LEVEL` [INFO] [stderr] --> src/constants.rs:30:1 [INFO] [stderr] | [INFO] [stderr] 30 | pub static ADMIN_LEVEL: &u8 = &1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `USER_LEVEL` [INFO] [stderr] --> src/constants.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | pub static USER_LEVEL: &u8 = &2; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/contexts/app.rs:34:18 [INFO] [stderr] | [INFO] [stderr] 34 | pub async fn new(request: Option, response: Option) -> Self{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `post` [INFO] [stderr] --> src/contexts/app.rs:42:18 [INFO] [stderr] | [INFO] [stderr] 42 | pub async fn post(mut self, endpoint: &str, mut cb: F) -> Result //-- defining self (an instance of the ob... [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get` [INFO] [stderr] --> src/contexts/app.rs:53:18 [INFO] [stderr] | [INFO] [stderr] 53 | pub async fn get(mut self, endpoint: &str, mut cb: F) -> Result //-- defining self (an instance of the obj... [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Off` [INFO] [stderr] --> src/contexts/app.rs:115:5 [INFO] [stderr] | [INFO] [stderr] 115 | Off, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] note: `Mode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/contexts/app.rs:112:16 [INFO] [stderr] | [INFO] [stderr] 112 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: method `GetMongoDbInstance` should have a snake case name [INFO] [stderr] --> src/contexts/app.rs:95:18 [INFO] [stderr] | [INFO] [stderr] 95 | pub async fn GetMongoDbInstance(&self) -> Client{ //-- it'll return an instance of the mongodb client [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_mongo_db_instance` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `auther` (bin "auther" test) generated 36 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/auther-1e40672037f2bed0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d8df5ac51fed6d4d546ad43b7e9dc84b66d7dfc7b67d7dcf18786f1f206527a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8df5ac51fed6d4d546ad43b7e9dc84b66d7dfc7b67d7dcf18786f1f206527a0", kill_on_drop: false }` [INFO] [stdout] d8df5ac51fed6d4d546ad43b7e9dc84b66d7dfc7b67d7dcf18786f1f206527a0