[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] building Gaurav-Khore/rbac_server_rust against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaurav-Khore%2Frbac_server_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/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-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Gaurav-Khore/rbac_server_rust on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded handlebars v5.1.2 [INFO] [stderr] Downloaded pest_generator v2.7.12 [INFO] [stderr] Downloaded async-graphql-parser v7.0.9 [INFO] [stderr] Downloaded async-graphql-derive v7.0.9 [INFO] [stderr] Downloaded pest_meta v2.7.12 [INFO] [stderr] Downloaded async-graphql-value v7.0.9 [INFO] [stderr] Downloaded pest_derive v2.7.12 [INFO] [stderr] Downloaded toml_edit v0.22.21 [INFO] [stderr] Downloaded pest v2.7.12 [INFO] [stderr] Downloaded static_assertions_next v1.1.2 [INFO] [stderr] Downloaded async-graphql-actix-web v7.0.9 [INFO] [stderr] Downloaded postgres v0.19.9 [INFO] [stderr] Downloaded async-graphql v7.0.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7924c02072b85c7e7fcec6a42c8fa49bfb0fe5fa3d27d9ef79aa76bc44121724 [INFO] running `Command { std: "docker" "start" "-a" "7924c02072b85c7e7fcec6a42c8fa49bfb0fe5fa3d27d9ef79aa76bc44121724", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7924c02072b85c7e7fcec6a42c8fa49bfb0fe5fa3d27d9ef79aa76bc44121724", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7924c02072b85c7e7fcec6a42c8fa49bfb0fe5fa3d27d9ef79aa76bc44121724", kill_on_drop: false }` [INFO] [stdout] 7924c02072b85c7e7fcec6a42c8fa49bfb0fe5fa3d27d9ef79aa76bc44121724 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 482f4a985441212f9bdd9cc9bcd9a118a3daafa26e053a384f33899447d370d8 [INFO] running `Command { std: "docker" "start" "-a" "482f4a985441212f9bdd9cc9bcd9a118a3daafa26e053a384f33899447d370d8", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling unicode-properties v0.1.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling winnow v0.6.18 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling ring v0.17.8 [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_builder v4.5.18 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling clap v4.5.18 [INFO] [stderr] Compiling darling_core v0.20.10 [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 derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling async-trait v0.1.82 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling actix_derive v0.6.2 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling pest v2.7.12 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling darling v0.20.10 [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 serde_json v1.0.128 [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 bytestring v1.3.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling postgres-protocol v0.6.7 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling toml_edit v0.22.21 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling postgres-types v0.2.8 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [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 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-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling sqlx-core v0.8.2 [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 postgres v0.19.9 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling async-graphql v7.0.9 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [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 variable: `v` [INFO] [stdout] --> src/graphql/mutations.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(v) =>{ [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 45 | Ok(_v) =>{ [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::queries::_) =>{ [INFO] [stdout] | [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: `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/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/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/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: 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] [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: `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: `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: `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: `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 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: `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: 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 36s [INFO] running `Command { std: "docker" "inspect" "482f4a985441212f9bdd9cc9bcd9a118a3daafa26e053a384f33899447d370d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "482f4a985441212f9bdd9cc9bcd9a118a3daafa26e053a384f33899447d370d8", kill_on_drop: false }` [INFO] [stdout] 482f4a985441212f9bdd9cc9bcd9a118a3daafa26e053a384f33899447d370d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 821250fe4b3cdb6c1e13316c8f0b6a9458aa4ff1de2f61f9e32aef9def618ec5 [INFO] running `Command { std: "docker" "start" "-a" "821250fe4b3cdb6c1e13316c8f0b6a9458aa4ff1de2f61f9e32aef9def618ec5", 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 variable: `v` [INFO] [stdout] --> src/graphql/mutations.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(v) =>{ [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 45 | Ok(_v) =>{ [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::queries::_) =>{ [INFO] [stdout] | [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: `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/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/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/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: 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] [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: `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: `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: `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: `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 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: `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: 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.13s [INFO] running `Command { std: "docker" "inspect" "821250fe4b3cdb6c1e13316c8f0b6a9458aa4ff1de2f61f9e32aef9def618ec5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "821250fe4b3cdb6c1e13316c8f0b6a9458aa4ff1de2f61f9e32aef9def618ec5", kill_on_drop: false }` [INFO] [stdout] 821250fe4b3cdb6c1e13316c8f0b6a9458aa4ff1de2f61f9e32aef9def618ec5