[INFO] cloning repository https://github.com/Gaurav-Khore/rbac_server_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gaurav-Khore/rbac_server_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaurav-Khore%2Frbac_server_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaurav-Khore%2Frbac_server_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 090115c658efa597f65ce9769ad25dcf32d407cf
[INFO] testing Gaurav-Khore/rbac_server_rust against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaurav-Khore%2Frbac_server_rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Gaurav-Khore/rbac_server_rust
[INFO] finished tweaking git repo https://github.com/Gaurav-Khore/rbac_server_rust
[INFO] tweaked toml for git repo https://github.com/Gaurav-Khore/rbac_server_rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Gaurav-Khore/rbac_server_rust on toolchain 33835004928d3bf65db4d4712e1330766263b0bd
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Gaurav-Khore/rbac_server_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 25196cf88fa2ec05507ea6ec588b7c346439aef653c581f9f1846cae0a06b9e7
[INFO] running `Command { std: "docker" "start" "-a" "25196cf88fa2ec05507ea6ec588b7c346439aef653c581f9f1846cae0a06b9e7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "25196cf88fa2ec05507ea6ec588b7c346439aef653c581f9f1846cae0a06b9e7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "25196cf88fa2ec05507ea6ec588b7c346439aef653c581f9f1846cae0a06b9e7", kill_on_drop: false }`
[INFO] [stdout] 25196cf88fa2ec05507ea6ec588b7c346439aef653c581f9f1846cae0a06b9e7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 02db4b02700d7701ea2abb38fa1b23a9ccdebd3c5da15897b52c39cd6e62f829
[INFO] running `Command { std: "docker" "start" "-a" "02db4b02700d7701ea2abb38fa1b23a9ccdebd3c5da15897b52c39cd6e62f829", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling unicode-ident v1.0.13
[INFO] [stderr]    Compiling libc v0.2.158
[INFO] [stderr]    Compiling serde v1.0.210
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling once_cell v1.20.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling itoa v1.0.11
[INFO] [stderr]    Compiling allocator-api2 v0.2.18
[INFO] [stderr]    Compiling pkg-config v0.3.30
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]    Compiling serde_json v1.0.128
[INFO] [stderr]    Compiling futures-io v0.3.30
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]    Compiling cpufeatures v0.2.14
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling unicode-properties v0.1.2
[INFO] [stderr]    Compiling ucd-trie v0.1.6
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling openssl v0.10.66
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling regex-syntax v0.8.4
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling time-core v0.1.2
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling time-macros v0.2.18
[INFO] [stderr]    Compiling deranged v0.3.11
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling zstd-safe v7.2.1
[INFO] [stderr]    Compiling rustix v0.38.37
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling jobserver v0.1.32
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling cc v1.1.19
[INFO] [stderr]    Compiling mio v1.0.2
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling syn v2.0.77
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling local-waker v0.1.4
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]    Compiling event-listener v5.3.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.11
[INFO] [stderr]    Compiling crc v3.2.1
[INFO] [stderr]    Compiling encoding_rs v0.8.34
[INFO] [stderr]    Compiling linux-raw-sys v0.4.14
[INFO] [stderr]    Compiling regex-lite v0.1.6
[INFO] [stderr]    Compiling rustversion v1.0.17
[INFO] [stderr]    Compiling miniz_oxide v0.8.0
[INFO] [stderr]    Compiling brotli-decompressor v4.0.1
[INFO] [stderr]    Compiling actix-utils v3.0.1
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling actix-service v2.0.2
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling fastrand v2.1.1
[INFO] [stderr]    Compiling flate2 v1.0.33
[INFO] [stderr]    Compiling time v0.3.36
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling local-channel v0.1.5
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling home v0.5.9
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling language-tags v0.3.2
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling winnow v0.6.18
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling openssl-sys v0.9.103
[INFO] [stderr]    Compiling zstd-sys v2.0.13+zstd.1.5.6
[INFO] [stderr]    Compiling regex-automata v0.4.7
[INFO] [stderr]    Compiling sqlformat v0.2.6
[INFO] [stderr]    Compiling brotli v6.0.0
[INFO] [stderr]    Compiling multer v3.1.0
[INFO] [stderr]    Compiling fallible-iterator v0.2.0
[INFO] [stderr]    Compiling whoami v1.5.2
[INFO] [stderr]    Compiling impl-more v0.1.6
[INFO] [stderr]    Compiling phf_shared v0.11.2
[INFO] [stderr]    Compiling anstyle-parse v0.2.5
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling crossbeam-channel v0.5.13
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling anstyle v1.0.8
[INFO] [stderr]    Compiling ascii_utils v0.9.3
[INFO] [stderr]    Compiling tempfile v3.12.0
[INFO] [stderr]    Compiling anstyle-query v1.1.1
[INFO] [stderr]    Compiling colorchoice v1.0.2
[INFO] [stderr]    Compiling anstream v0.6.15
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling fast_chemail v0.9.6
[INFO] [stderr]    Compiling phf v0.11.2
[INFO] [stderr]    Compiling event-listener-strategy v0.5.2
[INFO] [stderr]    Compiling static_assertions_next v1.1.2
[INFO] [stderr]    Compiling clap_lex v0.7.2
[INFO] [stderr]    Compiling async-channel v2.3.1
[INFO] [stderr]    Compiling pem v3.0.4
[INFO] [stderr]    Compiling iana-time-zone v0.1.61
[INFO] [stderr]    Compiling clap_builder v4.5.18
[INFO] [stderr]    Compiling chrono v0.4.38
[INFO] [stderr]    Compiling regex v1.10.6
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]    Compiling Inflector v0.11.4
[INFO] [stderr]    Compiling serde_derive v1.0.210
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling derive_more v0.99.18
[INFO] [stderr]    Compiling strum_macros v0.26.4
[INFO] [stderr]    Compiling async-trait v0.1.82
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]    Compiling pest v2.7.12
[INFO] [stderr]    Compiling actix_derive v0.6.2
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling darling_macro v0.20.10
[INFO] [stderr]    Compiling async-stream v0.3.5
[INFO] [stderr]    Compiling simple_asn1 v0.6.2
[INFO] [stderr]    Compiling clap v4.5.18
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling darling v0.20.10
[INFO] [stderr]    Compiling zstd v0.13.2
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling hashlink v0.9.1
[INFO] [stderr]    Compiling strum v0.26.3
[INFO] [stderr]    Compiling pest_meta v2.7.12
[INFO] [stderr]    Compiling pest_generator v2.7.12
[INFO] [stderr]    Compiling pest_derive v2.7.12
[INFO] [stderr]    Compiling bytes v1.7.1
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling indexmap v2.5.0
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling toml_edit v0.22.21
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling tokio v1.40.0
[INFO] [stderr]    Compiling bytestring v1.3.1
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling postgres-protocol v0.6.7
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]    Compiling postgres-types v0.2.8
[INFO] [stderr]    Compiling async-graphql-value v7.0.9
[INFO] [stderr]    Compiling handlebars v5.1.2
[INFO] [stderr]    Compiling jsonwebtoken v9.3.0
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]    Compiling async-graphql-parser v7.0.9
[INFO] [stderr]    Compiling proc-macro-crate v3.2.0
[INFO] [stderr]    Compiling async-graphql-derive v7.0.9
[INFO] [stderr]    Compiling tokio-stream v0.1.16
[INFO] [stderr]    Compiling tokio-util v0.7.12
[INFO] [stderr]    Compiling actix-rt v2.10.0
[INFO] [stderr]    Compiling sqlx-core v0.8.2
[INFO] [stderr]    Compiling actix-server v2.5.0
[INFO] [stderr]    Compiling h2 v0.3.26
[INFO] [stderr]    Compiling actix-codec v0.5.2
[INFO] [stderr]    Compiling actix v0.13.5
[INFO] [stderr]    Compiling tokio-postgres v0.7.12
[INFO] [stderr]    Compiling sqlx-postgres v0.8.2
[INFO] [stderr]    Compiling postgres v0.19.9
[INFO] [stderr]    Compiling async-graphql v7.0.9
[INFO] [stderr]    Compiling actix-http v3.9.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.2
[INFO] [stderr]    Compiling sqlx-macros v0.8.2
[INFO] [stderr]    Compiling actix-web v4.9.0
[INFO] [stderr]    Compiling sqlx v0.8.2
[INFO] [stderr]    Compiling actix-web-actors v4.3.1+deprecated
[INFO] [stderr]    Compiling actix-cors v0.7.0
[INFO] [stderr]    Compiling async-graphql-actix-web v7.0.9
[INFO] [stderr]    Compiling rbac_server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpRequest`, `HttpResponse`, and `Responder`
[INFO] [stdout]  --> src/main.rs:3:33
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http, web, App, HttpRequest, HttpResponse, HttpServer, Responder};
[INFO] [stdout]   |                                 ^^^^^^^^^^^  ^^^^^^^^^^^^              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context`, `EmptyMutation`, `ErrorExtensions`, `Error`, and `Object`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Context, EmptyMutation, EmptySubscription, Error, ErrorExtensions, Object, Schema,
[INFO] [stdout]   |     ^^^^^^^  ^^^^^^^^^^^^^                     ^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GraphQLRequest`, `GraphQLResponse`, and `GraphQL`
[INFO] [stdout]  --> src/main.rs:8:31
[INFO] [stdout]   |
[INFO] [stdout] 8 | use async_graphql_actix_web::{GraphQL, GraphQLRequest, GraphQLResponse};
[INFO] [stdout]   |                               ^^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `users::check_user_info`
[INFO] [stdout]   --> src/main.rs:10:30
[INFO] [stdout]    |
[INFO] [stdout] 10 | use db::{db_config::init_db, users::check_user_info};
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Hmac`
[INFO] [stdout]   --> src/main.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | use hmac::{Hmac, Mac};
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `postgres::Client`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use postgres::Client;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::Deserialize`
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use serde::Deserialize;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PgPool`, `Pool`, `Postgres`, `Row`, and `pool::PoolOptions`
[INFO] [stdout]   --> src/main.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | use sqlx::{pool::PoolOptions, postgres::PgPoolOptions, PgPool, Pool, Postgres, Row};
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^                           ^^^^^^  ^^^^  ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]   --> src/main.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use thiserror::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `utilities::jwt::create_jwt`
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use utilities::jwt::create_jwt;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sha2::Sha256`
[INFO] [stdout]   --> src/main.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use sha2::Sha256;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PgPool`
[INFO] [stdout]  --> src/db/db_config.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use sqlx::{PgPool, Pool, Postgres};
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Arc`
[INFO] [stdout]  --> src/api/graphql_api.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Arc, Mutex};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, `ResponseError`, and `http::StatusCode`
[INFO] [stdout]  --> src/api/graphql_api.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http::StatusCode, web, HttpRequest, HttpResponse, Responder, ResponseError};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^                    ^^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_graphql::Response`
[INFO] [stdout]  --> src/api/graphql_api.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use async_graphql::Response;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HttpResponse`
[INFO] [stdout]  --> src/utilities/jwt.rs:3:30
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{HttpRequest, HttpResponse};
[INFO] [stdout]   |                              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Claims`, `check_user_info`, `create_jwt`, `decode_jwt`, `fetch_role_permission`, `insert_permissions`, and `self`
[INFO] [stdout]   --> src/graphql/mutations.rs:6:23
[INFO] [stdout]    |
[INFO] [stdout]  6 |         permissions::{self, insert_permissions},
[INFO] [stdout]    |                       ^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  7 |         roles::{fetch_role_permission, insert_role_permissions, insert_roles},
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |         users::{check_user_info, insert_role_user, insert_users},
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 12 |         jwt::{create_jwt, decode_jwt, Claims},
[INFO] [stdout]    |               ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `string`
[INFO] [stdout]  --> src/graphql/queries.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, string};
[INFO] [stdout]   |                                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpRequest` and `http::header::HeaderValue`
[INFO] [stdout]  --> src/graphql/queries.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http::header::HeaderValue, HttpRequest};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Data`
[INFO] [stdout]  --> src/graphql/queries.rs:4:30
[INFO] [stdout]   |
[INFO] [stdout] 4 | use async_graphql::{Context, Data, Error, ErrorExtensions, Object};
[INFO] [stdout]   |                              ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Mac`
[INFO] [stdout]   --> src/main.rs:12:18
[INFO] [stdout]    |
[INFO] [stdout] 12 | use hmac::{Hmac, Mac};
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let res = sqlx::query(&user_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let res = sqlx::query(&roles_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let res = sqlx::query(&permissions_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let res = sqlx::query(&user_role_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |     let res = sqlx::query(&role_permission_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `role_res`
[INFO] [stdout]  --> src/db/roles.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let role_res = sqlx::query(&qry)
[INFO] [stdout]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `permission_res`
[INFO] [stdout]  --> src/db/permissions.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let permission_res = sqlx::query(&qry)
[INFO] [stdout]   |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permission_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/roles.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/roles.rs:69:13
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/roles.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> src/db/users.rs:81:12
[INFO] [stdout]    |
[INFO] [stdout] 81 |         Ok(v) => Ok(()),
[INFO] [stdout]    |            ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ins_perm`
[INFO] [stdout]   --> src/db/permissions.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let ins_perm = match sqlx::query(&qry).bind(&action).execute(pool).await {
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ins_perm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/db/permissions.rs:43:13
[INFO] [stdout]    |
[INFO] [stdout] 43 |         Err(e) => {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/db/roles.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |         Err(e) => {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ins_role`
[INFO] [stdout]   --> src/db/roles.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let ins_role = match sqlx::query(&qry).bind(&name).execute(pool).await {
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ins_role`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/db/roles.rs:106:12
[INFO] [stdout]     |
[INFO] [stdout] 106 |         Ok(v) => Ok(()),
[INFO] [stdout]     |            ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/db/users.rs:105:13
[INFO] [stdout]     |
[INFO] [stdout] 105 |         Err(e) => {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/utilities/jwt.rs:57:13
[INFO] [stdout]    |
[INFO] [stdout] 57 |         Err(e) => Err(Error::new("Invalid Authorization")
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> src/graphql/mutations.rs:45:16
[INFO] [stdout]    |
[INFO] [stdout] 45 |             Ok(v) =>{ 
[INFO] [stdout]    |                ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_`
[INFO] [stdout]    |
[INFO] [stdout] 45 -             Ok(v) =>{ 
[INFO] [stdout] 45 +             Ok(graphql::mutations::_) =>{ 
[INFO] [stdout]    |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 45 |             Ok(_v) =>{ 
[INFO] [stdout]    |                +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/mutations.rs:340:13
[INFO] [stdout]     |
[INFO] [stdout] 340 |         Err(e) => {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `role_perm`
[INFO] [stdout]    --> src/graphql/mutations.rs:394:13
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let role_perm = match authorize(pool, token.clone()).await {
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_perm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/graphql/queries.rs:98:17
[INFO] [stdout]    |
[INFO] [stdout] 98 |             Err(e) => {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:149:17
[INFO] [stdout]     |
[INFO] [stdout] 149 |             Err(e) => {return Err(Error::new("User Not Found")
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:165:17
[INFO] [stdout]     |
[INFO] [stdout] 165 |             Err(e) => {return Err(Error::new("User Not Found")
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:191:17
[INFO] [stdout]     |
[INFO] [stdout] 191 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:231:17
[INFO] [stdout]     |
[INFO] [stdout] 231 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:314:17
[INFO] [stdout]     |
[INFO] [stdout] 314 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `action` are never read
[INFO] [stdout]    --> src/db/roles.rs:115:5
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub struct RolePermission {
[INFO] [stdout]     |            -------------- fields in this struct
[INFO] [stdout] 115 |     name: String,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 116 |     action: String,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 45s
[INFO] running `Command { std: "docker" "inspect" "02db4b02700d7701ea2abb38fa1b23a9ccdebd3c5da15897b52c39cd6e62f829", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "02db4b02700d7701ea2abb38fa1b23a9ccdebd3c5da15897b52c39cd6e62f829", kill_on_drop: false }`
[INFO] [stdout] 02db4b02700d7701ea2abb38fa1b23a9ccdebd3c5da15897b52c39cd6e62f829
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] df79724ae29de1c3ea809286ac7fe43a1f3d9ffb75afc72871d1dff9d938bd57
[INFO] running `Command { std: "docker" "start" "-a" "df79724ae29de1c3ea809286ac7fe43a1f3d9ffb75afc72871d1dff9d938bd57", kill_on_drop: false }`
[INFO] [stderr]    Compiling rbac_server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpRequest`, `HttpResponse`, and `Responder`
[INFO] [stdout]  --> src/main.rs:3:33
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http, web, App, HttpRequest, HttpResponse, HttpServer, Responder};
[INFO] [stdout]   |                                 ^^^^^^^^^^^  ^^^^^^^^^^^^              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context`, `EmptyMutation`, `ErrorExtensions`, `Error`, and `Object`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Context, EmptyMutation, EmptySubscription, Error, ErrorExtensions, Object, Schema,
[INFO] [stdout]   |     ^^^^^^^  ^^^^^^^^^^^^^                     ^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GraphQLRequest`, `GraphQLResponse`, and `GraphQL`
[INFO] [stdout]  --> src/main.rs:8:31
[INFO] [stdout]   |
[INFO] [stdout] 8 | use async_graphql_actix_web::{GraphQL, GraphQLRequest, GraphQLResponse};
[INFO] [stdout]   |                               ^^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `users::check_user_info`
[INFO] [stdout]   --> src/main.rs:10:30
[INFO] [stdout]    |
[INFO] [stdout] 10 | use db::{db_config::init_db, users::check_user_info};
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Hmac`
[INFO] [stdout]   --> src/main.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | use hmac::{Hmac, Mac};
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `postgres::Client`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use postgres::Client;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::Deserialize`
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use serde::Deserialize;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PgPool`, `Pool`, `Postgres`, `Row`, and `pool::PoolOptions`
[INFO] [stdout]   --> src/main.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | use sqlx::{pool::PoolOptions, postgres::PgPoolOptions, PgPool, Pool, Postgres, Row};
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^                           ^^^^^^  ^^^^  ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]   --> src/main.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use thiserror::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `utilities::jwt::create_jwt`
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use utilities::jwt::create_jwt;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sha2::Sha256`
[INFO] [stdout]   --> src/main.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use sha2::Sha256;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PgPool`
[INFO] [stdout]  --> src/db/db_config.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use sqlx::{PgPool, Pool, Postgres};
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Arc`
[INFO] [stdout]  --> src/api/graphql_api.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Arc, Mutex};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, `ResponseError`, and `http::StatusCode`
[INFO] [stdout]  --> src/api/graphql_api.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http::StatusCode, web, HttpRequest, HttpResponse, Responder, ResponseError};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^                    ^^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `async_graphql::Response`
[INFO] [stdout]  --> src/api/graphql_api.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use async_graphql::Response;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HttpResponse`
[INFO] [stdout]  --> src/utilities/jwt.rs:3:30
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{HttpRequest, HttpResponse};
[INFO] [stdout]   |                              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Claims`, `check_user_info`, `create_jwt`, `decode_jwt`, `fetch_role_permission`, `insert_permissions`, and `self`
[INFO] [stdout]   --> src/graphql/mutations.rs:6:23
[INFO] [stdout]    |
[INFO] [stdout]  6 |         permissions::{self, insert_permissions},
[INFO] [stdout]    |                       ^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  7 |         roles::{fetch_role_permission, insert_role_permissions, insert_roles},
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |         users::{check_user_info, insert_role_user, insert_users},
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 12 |         jwt::{create_jwt, decode_jwt, Claims},
[INFO] [stdout]    |               ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `string`
[INFO] [stdout]  --> src/graphql/queries.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, string};
[INFO] [stdout]   |                                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpRequest` and `http::header::HeaderValue`
[INFO] [stdout]  --> src/graphql/queries.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{http::header::HeaderValue, HttpRequest};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Data`
[INFO] [stdout]  --> src/graphql/queries.rs:4:30
[INFO] [stdout]   |
[INFO] [stdout] 4 | use async_graphql::{Context, Data, Error, ErrorExtensions, Object};
[INFO] [stdout]   |                              ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Mac`
[INFO] [stdout]   --> src/main.rs:12:18
[INFO] [stdout]    |
[INFO] [stdout] 12 | use hmac::{Hmac, Mac};
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let res = sqlx::query(&user_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let res = sqlx::query(&roles_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let res = sqlx::query(&permissions_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let res = sqlx::query(&user_role_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/db_config.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 |     let res = sqlx::query(&role_permission_table)
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `role_res`
[INFO] [stdout]  --> src/db/roles.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let role_res = sqlx::query(&qry)
[INFO] [stdout]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `permission_res`
[INFO] [stdout]  --> src/db/permissions.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let permission_res = sqlx::query(&qry)
[INFO] [stdout]   |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permission_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/roles.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/roles.rs:69:13
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/db/roles.rs:84:13
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> src/db/users.rs:81:12
[INFO] [stdout]    |
[INFO] [stdout] 81 |         Ok(v) => Ok(()),
[INFO] [stdout]    |            ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ins_perm`
[INFO] [stdout]   --> src/db/permissions.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let ins_perm = match sqlx::query(&qry).bind(&action).execute(pool).await {
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ins_perm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/db/permissions.rs:43:13
[INFO] [stdout]    |
[INFO] [stdout] 43 |         Err(e) => {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/db/roles.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |         Err(e) => {
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ins_role`
[INFO] [stdout]   --> src/db/roles.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let ins_role = match sqlx::query(&qry).bind(&name).execute(pool).await {
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ins_role`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/db/roles.rs:106:12
[INFO] [stdout]     |
[INFO] [stdout] 106 |         Ok(v) => Ok(()),
[INFO] [stdout]     |            ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/db/users.rs:105:13
[INFO] [stdout]     |
[INFO] [stdout] 105 |         Err(e) => {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/utilities/jwt.rs:57:13
[INFO] [stdout]    |
[INFO] [stdout] 57 |         Err(e) => Err(Error::new("Invalid Authorization")
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> src/graphql/mutations.rs:45:16
[INFO] [stdout]    |
[INFO] [stdout] 45 |             Ok(v) =>{ 
[INFO] [stdout]    |                ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_`
[INFO] [stdout]    |
[INFO] [stdout] 45 -             Ok(v) =>{ 
[INFO] [stdout] 45 +             Ok(graphql::mutations::_) =>{ 
[INFO] [stdout]    |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 45 |             Ok(_v) =>{ 
[INFO] [stdout]    |                +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/mutations.rs:340:13
[INFO] [stdout]     |
[INFO] [stdout] 340 |         Err(e) => {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `role_perm`
[INFO] [stdout]    --> src/graphql/mutations.rs:394:13
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let role_perm = match authorize(pool, token.clone()).await {
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_perm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/graphql/queries.rs:98:17
[INFO] [stdout]    |
[INFO] [stdout] 98 |             Err(e) => {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:149:17
[INFO] [stdout]     |
[INFO] [stdout] 149 |             Err(e) => {return Err(Error::new("User Not Found")
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:165:17
[INFO] [stdout]     |
[INFO] [stdout] 165 |             Err(e) => {return Err(Error::new("User Not Found")
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:191:17
[INFO] [stdout]     |
[INFO] [stdout] 191 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:231:17
[INFO] [stdout]     |
[INFO] [stdout] 231 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/graphql/queries.rs:314:17
[INFO] [stdout]     |
[INFO] [stdout] 314 |             Err(e) => {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `action` are never read
[INFO] [stdout]    --> src/db/roles.rs:115:5
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub struct RolePermission {
[INFO] [stdout]     |            -------------- fields in this struct
[INFO] [stdout] 115 |     name: String,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 116 |     action: String,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 10.40s
[INFO] running `Command { std: "docker" "inspect" "df79724ae29de1c3ea809286ac7fe43a1f3d9ffb75afc72871d1dff9d938bd57", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "df79724ae29de1c3ea809286ac7fe43a1f3d9ffb75afc72871d1dff9d938bd57", kill_on_drop: false }`
[INFO] [stdout] df79724ae29de1c3ea809286ac7fe43a1f3d9ffb75afc72871d1dff9d938bd57
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] fe393abf3bf051c94851a505d803c17488e97c5157324bacf6f3a4526e661b59
[INFO] running `Command { std: "docker" "start" "-a" "fe393abf3bf051c94851a505d803c17488e97c5157324bacf6f3a4526e661b59", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::time::Duration`
[INFO] [stderr]  --> src/main.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::time::Duration;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `HttpRequest`, `HttpResponse`, and `Responder`
[INFO] [stderr]  --> src/main.rs:3:33
[INFO] [stderr]   |
[INFO] [stderr] 3 | use actix_web::{http, web, App, HttpRequest, HttpResponse, HttpServer, Responder};
[INFO] [stderr]   |                                 ^^^^^^^^^^^  ^^^^^^^^^^^^              ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Context`, `EmptyMutation`, `ErrorExtensions`, `Error`, and `Object`
[INFO] [stderr]  --> src/main.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 |     Context, EmptyMutation, EmptySubscription, Error, ErrorExtensions, Object, Schema,
[INFO] [stderr]   |     ^^^^^^^  ^^^^^^^^^^^^^                     ^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `GraphQLRequest`, `GraphQLResponse`, and `GraphQL`
[INFO] [stderr]  --> src/main.rs:8:31
[INFO] [stderr]   |
[INFO] [stderr] 8 | use async_graphql_actix_web::{GraphQL, GraphQLRequest, GraphQLResponse};
[INFO] [stderr]   |                               ^^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `users::check_user_info`
[INFO] [stderr]   --> src/main.rs:10:30
[INFO] [stderr]    |
[INFO] [stderr] 10 | use db::{db_config::init_db, users::check_user_info};
[INFO] [stderr]    |                              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Hmac`
[INFO] [stderr]   --> src/main.rs:12:12
[INFO] [stderr]    |
[INFO] [stderr] 12 | use hmac::{Hmac, Mac};
[INFO] [stderr]    |            ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `postgres::Client`
[INFO] [stderr]   --> src/main.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 13 | use postgres::Client;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `serde::Deserialize`
[INFO] [stderr]   --> src/main.rs:14:5
[INFO] [stderr]    |
[INFO] [stderr] 14 | use serde::Deserialize;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `PgPool`, `Pool`, `Postgres`, `Row`, and `pool::PoolOptions`
[INFO] [stderr]   --> src/main.rs:15:12
[INFO] [stderr]    |
[INFO] [stderr] 15 | use sqlx::{pool::PoolOptions, postgres::PgPoolOptions, PgPool, Pool, Postgres, Row};
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^                           ^^^^^^  ^^^^  ^^^^^^^^  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `thiserror::Error`
[INFO] [stderr]   --> src/main.rs:16:5
[INFO] [stderr]    |
[INFO] [stderr] 16 | use thiserror::Error;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `utilities::jwt::create_jwt`
[INFO] [stderr]   --> src/main.rs:18:5
[INFO] [stderr]    |
[INFO] [stderr] 18 | use utilities::jwt::create_jwt;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `sha2::Sha256`
[INFO] [stderr]   --> src/main.rs:19:5
[INFO] [stderr]    |
[INFO] [stderr] 19 | use sha2::Sha256;
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `PgPool`
[INFO] [stderr]  --> src/db/db_config.rs:1:12
[INFO] [stderr]   |
[INFO] [stderr] 1 | use sqlx::{PgPool, Pool, Postgres};
[INFO] [stderr]   |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Arc`
[INFO] [stderr]  --> src/api/graphql_api.rs:1:17
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::sync::{Arc, Mutex};
[INFO] [stderr]   |                 ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `HttpResponse`, `Responder`, `ResponseError`, and `http::StatusCode`
[INFO] [stderr]  --> src/api/graphql_api.rs:3:17
[INFO] [stderr]   |
[INFO] [stderr] 3 | use actix_web::{http::StatusCode, web, HttpRequest, HttpResponse, Responder, ResponseError};
[INFO] [stderr]   |                 ^^^^^^^^^^^^^^^^                    ^^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `async_graphql::Response`
[INFO] [stderr]  --> src/api/graphql_api.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use async_graphql::Response;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `HttpResponse`
[INFO] [stderr]  --> src/utilities/jwt.rs:3:30
[INFO] [stderr]   |
[INFO] [stderr] 3 | use actix_web::{HttpRequest, HttpResponse};
[INFO] [stderr]   |                              ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Claims`, `check_user_info`, `create_jwt`, `decode_jwt`, `fetch_role_permission`, `insert_permissions`, and `self`
[INFO] [stderr]   --> src/graphql/mutations.rs:6:23
[INFO] [stderr]    |
[INFO] [stderr]  6 |         permissions::{self, insert_permissions},
[INFO] [stderr]    |                       ^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]  7 |         roles::{fetch_role_permission, insert_role_permissions, insert_roles},
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]  8 |         users::{check_user_info, insert_role_user, insert_users},
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 12 |         jwt::{create_jwt, decode_jwt, Claims},
[INFO] [stderr]    |               ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `string`
[INFO] [stderr]  --> src/graphql/queries.rs:1:33
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::{collections::HashMap, string};
[INFO] [stderr]   |                                 ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `HttpRequest` and `http::header::HeaderValue`
[INFO] [stderr]  --> src/graphql/queries.rs:3:17
[INFO] [stderr]   |
[INFO] [stderr] 3 | use actix_web::{http::header::HeaderValue, HttpRequest};
[INFO] [stderr]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Data`
[INFO] [stderr]  --> src/graphql/queries.rs:4:30
[INFO] [stderr]   |
[INFO] [stderr] 4 | use async_graphql::{Context, Data, Error, ErrorExtensions, Object};
[INFO] [stderr]   |                              ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Mac`
[INFO] [stderr]   --> src/main.rs:12:18
[INFO] [stderr]    |
[INFO] [stderr] 12 | use hmac::{Hmac, Mac};
[INFO] [stderr]    |                  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/db_config.rs:19:9
[INFO] [stderr]    |
[INFO] [stderr] 19 |     let res = sqlx::query(&user_table)
[INFO] [stderr]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/db_config.rs:27:9
[INFO] [stderr]    |
[INFO] [stderr] 27 |     let res = sqlx::query(&roles_table)
[INFO] [stderr]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/db_config.rs:36:9
[INFO] [stderr]    |
[INFO] [stderr] 36 |     let res = sqlx::query(&permissions_table)
[INFO] [stderr]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/db_config.rs:47:9
[INFO] [stderr]    |
[INFO] [stderr] 47 |     let res = sqlx::query(&user_role_table)
[INFO] [stderr]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/db_config.rs:58:9
[INFO] [stderr]    |
[INFO] [stderr] 58 |     let res = sqlx::query(&role_permission_table)
[INFO] [stderr]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `role_res`
[INFO] [stderr]  --> src/db/roles.rs:7:9
[INFO] [stderr]   |
[INFO] [stderr] 7 |     let role_res = sqlx::query(&qry)
[INFO] [stderr]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `permission_res`
[INFO] [stderr]  --> src/db/permissions.rs:8:9
[INFO] [stderr]   |
[INFO] [stderr] 8 |     let permission_res = sqlx::query(&qry)
[INFO] [stderr]   |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_permission_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/roles.rs:54:13
[INFO] [stderr]    |
[INFO] [stderr] 54 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stderr]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/roles.rs:69:13
[INFO] [stderr]    |
[INFO] [stderr] 69 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stderr]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `res`
[INFO] [stderr]   --> src/db/roles.rs:84:13
[INFO] [stderr]    |
[INFO] [stderr] 84 |         let res = sqlx::query(&superuser_perm_role)
[INFO] [stderr]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `v`
[INFO] [stderr]   --> src/db/users.rs:81:12
[INFO] [stderr]    |
[INFO] [stderr] 81 |         Ok(v) => Ok(()),
[INFO] [stderr]    |            ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `ins_perm`
[INFO] [stderr]   --> src/db/permissions.rs:41:9
[INFO] [stderr]    |
[INFO] [stderr] 41 |     let ins_perm = match sqlx::query(&qry).bind(&action).execute(pool).await {
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ins_perm`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]   --> src/db/permissions.rs:43:13
[INFO] [stderr]    |
[INFO] [stderr] 43 |         Err(e) => {
[INFO] [stderr]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]   --> src/db/roles.rs:23:13
[INFO] [stderr]    |
[INFO] [stderr] 23 |         Err(e) => {
[INFO] [stderr]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `ins_role`
[INFO] [stderr]   --> src/db/roles.rs:35:9
[INFO] [stderr]    |
[INFO] [stderr] 35 |     let ins_role = match sqlx::query(&qry).bind(&name).execute(pool).await {
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ins_role`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `v`
[INFO] [stderr]    --> src/db/roles.rs:106:12
[INFO] [stderr]     |
[INFO] [stderr] 106 |         Ok(v) => Ok(()),
[INFO] [stderr]     |            ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/db/users.rs:105:13
[INFO] [stderr]     |
[INFO] [stderr] 105 |         Err(e) => {
[INFO] [stderr]     |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]   --> src/utilities/jwt.rs:57:13
[INFO] [stderr]    |
[INFO] [stderr] 57 |         Err(e) => Err(Error::new("Invalid Authorization")
[INFO] [stderr]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `v`
[INFO] [stderr]   --> src/graphql/mutations.rs:45:16
[INFO] [stderr]    |
[INFO] [stderr] 45 |             Ok(v) =>{ 
[INFO] [stderr]    |                ^
[INFO] [stderr]    |
[INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `_`
[INFO] [stderr]    |
[INFO] [stderr] 45 -             Ok(v) =>{ 
[INFO] [stderr] 45 +             Ok(graphql::mutations::_) =>{ 
[INFO] [stderr]    |
[INFO] [stderr] help: if this is intentional, prefix it with an underscore
[INFO] [stderr]    |
[INFO] [stderr] 45 |             Ok(_v) =>{ 
[INFO] [stderr]    |                +
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/graphql/mutations.rs:340:13
[INFO] [stderr]     |
[INFO] [stderr] 340 |         Err(e) => {
[INFO] [stderr]     |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `role_perm`
[INFO] [stderr]    --> src/graphql/mutations.rs:394:13
[INFO] [stderr]     |
[INFO] [stderr] 394 |         let role_perm = match authorize(pool, token.clone()).await {
[INFO] [stderr]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_role_perm`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]   --> src/graphql/queries.rs:98:17
[INFO] [stderr]    |
[INFO] [stderr] 98 |             Err(e) => {
[INFO] [stderr]    |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/graphql/queries.rs:149:17
[INFO] [stderr]     |
[INFO] [stderr] 149 |             Err(e) => {return Err(Error::new("User Not Found")
[INFO] [stderr]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/graphql/queries.rs:165:17
[INFO] [stderr]     |
[INFO] [stderr] 165 |             Err(e) => {return Err(Error::new("User Not Found")
[INFO] [stderr]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/graphql/queries.rs:191:17
[INFO] [stderr]     |
[INFO] [stderr] 191 |             Err(e) => {
[INFO] [stderr]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/graphql/queries.rs:231:17
[INFO] [stderr]     |
[INFO] [stderr] 231 |             Err(e) => {
[INFO] [stderr]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]    --> src/graphql/queries.rs:314:17
[INFO] [stderr]     |
[INFO] [stderr] 314 |             Err(e) => {
[INFO] [stderr]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr] 
[INFO] [stderr] warning: fields `name` and `action` are never read
[INFO] [stderr]    --> src/db/roles.rs:115:5
[INFO] [stderr]     |
[INFO] [stderr] 114 | pub struct RolePermission {
[INFO] [stderr]     |            -------------- fields in this struct
[INFO] [stderr] 115 |     name: String,
[INFO] [stderr]     |     ^^^^
[INFO] [stderr] 116 |     action: String,
[INFO] [stderr]     |     ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `rbac_server` (bin "rbac_server" test) generated 50 warnings (run `cargo fix --bin "rbac_server" -p rbac_server --tests` to apply 48 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.15s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rbac_server-e2899dfd4125d6ab)
[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" "fe393abf3bf051c94851a505d803c17488e97c5157324bacf6f3a4526e661b59", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fe393abf3bf051c94851a505d803c17488e97c5157324bacf6f3a4526e661b59", kill_on_drop: false }`
[INFO] [stdout] fe393abf3bf051c94851a505d803c17488e97c5157324bacf6f3a4526e661b59
