[INFO] cloning repository https://github.com/Rosist-Sallina/yaoJ [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rosist-Sallina/yaoJ" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRosist-Sallina%2FyaoJ", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRosist-Sallina%2FyaoJ'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13d9c84057b8278a5419647b16b2f8de61f382d1 [INFO] checking Rosist-Sallina/yaoJ against try#804fff1ae95da9d03bd44eee27f258020a575dab for pr-146013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRosist-Sallina%2FyaoJ" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Rosist-Sallina/yaoJ [INFO] finished tweaking git repo https://github.com/Rosist-Sallina/yaoJ [INFO] tweaked toml for git repo https://github.com/Rosist-Sallina/yaoJ written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Rosist-Sallina/yaoJ on toolchain 804fff1ae95da9d03bd44eee27f258020a575dab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+804fff1ae95da9d03bd44eee27f258020a575dab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Rosist-Sallina/yaoJ 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" "+804fff1ae95da9d03bd44eee27f258020a575dab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+804fff1ae95da9d03bd44eee27f258020a575dab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 028b1188b0b9c1f084be255a98bf625f6127f77b47bcfbade185519eb44a2e21 [INFO] running `Command { std: "docker" "start" "-a" "028b1188b0b9c1f084be255a98bf625f6127f77b47bcfbade185519eb44a2e21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "028b1188b0b9c1f084be255a98bf625f6127f77b47bcfbade185519eb44a2e21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "028b1188b0b9c1f084be255a98bf625f6127f77b47bcfbade185519eb44a2e21", kill_on_drop: false }` [INFO] [stdout] 028b1188b0b9c1f084be255a98bf625f6127f77b47bcfbade185519eb44a2e21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+804fff1ae95da9d03bd44eee27f258020a575dab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ff41915303c1f3b436f68bbf1179312e4a19e9e51c96d00ba657ad34e719937 [INFO] running `Command { std: "docker" "start" "-a" "0ff41915303c1f3b436f68bbf1179312e4a19e9e51c96d00ba657ad34e719937", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling cc v1.1.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling tokio v1.38.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking clap_builder v4.5.9 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Checking pem v0.8.3 [INFO] [stderr] Checking simple_asn1 v0.4.1 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking clap v4.5.9 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking bcrypt v0.1.6 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking actix-server v2.4.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking actix-router v0.5.3 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking jsonwebtoken v7.2.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Checking actix-http v3.8.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.5 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking actix-web v4.8.0 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking actix-web-httpauth v0.6.0 [INFO] [stderr] Checking oj v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Dynamic_Ranking` should have an upper camel case name [INFO] [stdout] --> src/config.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | Dynamic_Ranking, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DynamicRanking` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/api/jobs.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::{self, File}, io::{BufRead, BufReader, Read}, path::Path, process::Command, thread::sleep}; [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: `Error`, `delete`, `dev::ServiceRequest`, and `error::ErrorBadRequest` [INFO] [stdout] --> src/api/jobs.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{delete, dev::ServiceRequest, error::ErrorBadRequest, get, post, put, web, Error, HttpMessage, HttpRequest, HttpResponse, ... [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task` [INFO] [stdout] --> src/api/jobs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::task; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/api/jobs.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Job_conf` should have an upper camel case name [INFO] [stdout] --> src/api/jobs.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Job_conf{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `JobConf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `competition::get_contests_list` [INFO] [stdout] --> src/api/err.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use super::{competition::get_contests_list, jobs::Job_conf}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::E` [INFO] [stdout] --> src/api/users.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpRequest` [INFO] [stdout] --> src/api/competition.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, post, web, HttpMessage, HttpRequest, HttpResponse, Responder}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::Json` [INFO] [stdout] --> src/api/competition.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::{types::Json, SqlitePool}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/constant.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `jobs::State` and `self` [INFO] [stdout] --> src/constant.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::api::{self, jobs::State}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/constant/states.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::api::{self, jobs::State}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BadResponse` [INFO] [stdout] --> src/constant/users.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::api::err::{Errs, BadResponse}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Authed_User` should have an upper camel case name [INFO] [stdout] --> src/constant/users.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Authed_User{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AuthedUser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/constant/competition.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/constant/competition.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_or_update_user` and `get_users` [INFO] [stdout] --> src/main.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use api::users::{create_or_update_user, fix_user, get_users, getusers}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Algorithm` [INFO] [stdout] --> src/authenticator/login.rs:4:49 [INFO] [stdout] | [INFO] [stdout] 4 | use jsonwebtoken::{encode, Header, EncodingKey, Algorithm}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/jobs.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let state = State::new(job.clone() , &config); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `id` is never read [INFO] [stdout] --> src/api/jobs.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | let mut id = 0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/jobs.rs:487:72 [INFO] [stdout] | [INFO] [stdout] 487 | let in_state = get_state_by_id(pool.get_ref(), *id).await.map_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/api/err.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | Err(e) => return Err(Errs::Internal), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Dynamic_Ranking` should have an upper camel case name [INFO] [stdout] --> src/config.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | Dynamic_Ranking, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DynamicRanking` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> src/api/jobs.rs:1:43 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::{self, File}, io::{BufRead, BufReader, Read}, path::Path, process::Command, thread::sleep}; [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: `Error`, `delete`, `dev::ServiceRequest`, and `error::ErrorBadRequest` [INFO] [stdout] --> src/api/jobs.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{delete, dev::ServiceRequest, error::ErrorBadRequest, get, post, put, web, Error, HttpMessage, HttpRequest, HttpResponse, ... [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task` [INFO] [stdout] --> src/api/jobs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::task; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/api/jobs.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Job_conf` should have an upper camel case name [INFO] [stdout] --> src/api/jobs.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Job_conf{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `JobConf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `competition::get_contests_list` [INFO] [stdout] --> src/api/err.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use super::{competition::get_contests_list, jobs::Job_conf}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::E` [INFO] [stdout] --> src/api/users.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpRequest` [INFO] [stdout] --> src/api/competition.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, post, web, HttpMessage, HttpRequest, HttpResponse, Responder}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::Json` [INFO] [stdout] --> src/api/competition.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::{types::Json, SqlitePool}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/constant.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `jobs::State` and `self` [INFO] [stdout] --> src/constant.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::api::{self, jobs::State}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/constant/states.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::api::{self, jobs::State}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BadResponse` [INFO] [stdout] --> src/constant/users.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::api::err::{Errs, BadResponse}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Authed_User` should have an upper camel case name [INFO] [stdout] --> src/constant/users.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Authed_User{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AuthedUser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/constant/competition.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/constant/competition.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_or_update_user` and `get_users` [INFO] [stdout] --> src/main.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use api::users::{create_or_update_user, fix_user, get_users, getusers}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Algorithm` [INFO] [stdout] --> src/authenticator/login.rs:4:49 [INFO] [stdout] | [INFO] [stdout] 4 | use jsonwebtoken::{encode, Header, EncodingKey, Algorithm}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/competition.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | Err(e) => HttpResponse::NotFound().json(json!({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/jobs.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let state = State::new(job.clone() , &config); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `id` is never read [INFO] [stdout] --> src/api/jobs.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | let mut id = 0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/api/jobs.rs:487:72 [INFO] [stdout] | [INFO] [stdout] 487 | let in_state = get_state_by_id(pool.get_ref(), *id).await.map_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/api/err.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | Err(e) => return Err(Errs::Internal), [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/api/competition.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | Err(e) => HttpResponse::NotFound().json(json!({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Executor` [INFO] [stdout] --> src/constant.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::{sqlite::SqlitePoolOptions, Executor, SqlitePool}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Executor` [INFO] [stdout] --> src/constant.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::{sqlite::SqlitePoolOptions, Executor, SqlitePool}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_id` [INFO] [stdout] --> src/api/jobs.rs:525:84 [INFO] [stdout] | [INFO] [stdout] 525 | fn rejudge(problem: &config::Problem , submission : &Job_conf , config : &Config , next_id : i64) -> State { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_id` [INFO] [stdout] --> src/api/jobs.rs:525:84 [INFO] [stdout] | [INFO] [stdout] 525 | fn rejudge(problem: &config::Problem , submission : &Job_conf , config : &Config , next_id : i64) -> State { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `memory_limit` is never read [INFO] [stdout] --> src/config.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Case{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub memory_limit: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Case` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `misc` are never read [INFO] [stdout] --> src/config.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Problem{ [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 55 | pub id: u32, [INFO] [stdout] 56 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub misc : Misc, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `External` is never constructed [INFO] [stdout] --> src/api/err.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Errs{ [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | External, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Errs` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Authed_User` is never constructed [INFO] [stdout] --> src/constant/users.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Authed_User{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_default_contest` is never used [INFO] [stdout] --> src/constant/competition.rs:309:14 [INFO] [stdout] | [INFO] [stdout] 309 | pub async fn set_default_contest( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sub` and `exp` are never read [INFO] [stdout] --> src/authenticator/auth.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Claims { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | pub sub: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | pub exp: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `memory_limit` is never read [INFO] [stdout] --> src/config.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Case{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub memory_limit: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Case` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `misc` are never read [INFO] [stdout] --> src/config.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Problem{ [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 55 | pub id: u32, [INFO] [stdout] 56 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub misc : Misc, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `External` is never constructed [INFO] [stdout] --> src/api/err.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Errs{ [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | External, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Errs` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Authed_User` is never constructed [INFO] [stdout] --> src/constant/users.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Authed_User{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_default_contest` is never used [INFO] [stdout] --> src/constant/competition.rs:309:14 [INFO] [stdout] | [INFO] [stdout] 309 | pub async fn set_default_contest( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sub` and `exp` are never read [INFO] [stdout] --> src/authenticator/auth.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Claims { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | pub sub: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | pub exp: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "0ff41915303c1f3b436f68bbf1179312e4a19e9e51c96d00ba657ad34e719937", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ff41915303c1f3b436f68bbf1179312e4a19e9e51c96d00ba657ad34e719937", kill_on_drop: false }` [INFO] [stdout] 0ff41915303c1f3b436f68bbf1179312e4a19e9e51c96d00ba657ad34e719937