[INFO] cloning repository https://github.com/russel-io/russel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/russel-io/russel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frussel-io%2Frussel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frussel-io%2Frussel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 75643f54ed9a0086e50ff16e7c4c349dff517987 [INFO] checking russel-io/russel against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frussel-io%2Frussel" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/russel-io/russel on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/russel-io/russel [INFO] finished tweaking git repo https://github.com/russel-io/russel [INFO] tweaked toml for git repo https://github.com/russel-io/russel written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/russel-io/russel 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cron v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 878d7830225c42966cff4a3abe50e7be4c311856d9f4d7db3aead96dea7ec806 [INFO] running `Command { std: "docker" "start" "-a" "878d7830225c42966cff4a3abe50e7be4c311856d9f4d7db3aead96dea7ec806", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "878d7830225c42966cff4a3abe50e7be4c311856d9f4d7db3aead96dea7ec806", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "878d7830225c42966cff4a3abe50e7be4c311856d9f4d7db3aead96dea7ec806", kill_on_drop: false }` [INFO] [stdout] 878d7830225c42966cff4a3abe50e7be4c311856d9f4d7db3aead96dea7ec806 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18d94ee6a89549d48244f045ab9b78ec470cb1a35f753a7a3ecd4c851ce31730 [INFO] running `Command { std: "docker" "start" "-a" "18d94ee6a89549d48244f045ab9b78ec470cb1a35f753a7a3ecd4c851ce31730", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling cc v1.1.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking addr2line v0.22.0 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking object v0.36.1 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking actix-server v2.4.0 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking nom v4.1.1 [INFO] [stderr] Checking http-range v0.1.5 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Compiling russel v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking block-modes v0.8.1 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking error-chain v0.10.0 [INFO] [stderr] Checking cron v0.7.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking actix-http v3.8.0 [INFO] [stderr] Checking actix-web v4.8.0 [INFO] [stderr] Checking actix-files v0.6.6 [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cache/cache.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, HashMap}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/cache/cache.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/crypto/crypto_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/creds/cred_manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/creds/cred_manager.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::body::MessageBody` [INFO] [stdout] --> src/creds/cred_manager.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::body::MessageBody; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `File` [INFO] [stdout] --> src/persistent/persistent_Manager.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, fs::{File, OpenOptions}, io::{BufReader, Write}, path::PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/persistent/persistent_Manager.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `main` [INFO] [stdout] --> src/persistent/persistent_Manager.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{logger::logger_manager::Logger, main}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/jobs/retention_policy_job.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, fs::{self, File}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Days` [INFO] [stdout] --> src/jobs/retention_policy_job.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{prelude::*, Days}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/public_api/server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/public_api/server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::TryCurrentError` [INFO] [stdout] --> src/public_api/server.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::runtime::TryCurrentError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/public_api/server.rs:79:140 [INFO] [stdout] | [INFO] [stdout] 79 | ...e.clone().parse::().unwrap(), Option::Some((¤t_user))) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - match creds.lock().unwrap().add_user(username.clone(), password.clone(), role.clone().parse::().unwrap(), Option::Some((¤t_user))) { [INFO] [stdout] 79 + match creds.lock().unwrap().add_user(username.clone(), password.clone(), role.clone().parse::().unwrap(), Option::Some(¤t_user)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `server::run_server` [INFO] [stdout] --> src/public_api/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use server::run_server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Path` [INFO] [stdout] --> src/logger/logger_manager.rs:1:61 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::{File, OpenOptions}, io::Write, path::PathBuf,path::Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cache/cache.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, HashMap}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/cache/cache.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/crypto/crypto_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/creds/cred_manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/creds/cred_manager.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::body::MessageBody` [INFO] [stdout] --> src/creds/cred_manager.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::body::MessageBody; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `File` [INFO] [stdout] --> src/persistent/persistent_Manager.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, fs::{File, OpenOptions}, io::{BufReader, Write}, path::PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/persistent/persistent_Manager.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `main` [INFO] [stdout] --> src/persistent/persistent_Manager.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{logger::logger_manager::Logger, main}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/jobs/retention_policy_job.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{env, fs::{self, File}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Days` [INFO] [stdout] --> src/jobs/retention_policy_job.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{prelude::*, Days}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/public_api/server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/public_api/server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::TryCurrentError` [INFO] [stdout] --> src/public_api/server.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::runtime::TryCurrentError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/public_api/server.rs:79:140 [INFO] [stdout] | [INFO] [stdout] 79 | ...e.clone().parse::().unwrap(), Option::Some((¤t_user))) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - match creds.lock().unwrap().add_user(username.clone(), password.clone(), role.clone().parse::().unwrap(), Option::Some((¤t_user))) { [INFO] [stdout] 79 + match creds.lock().unwrap().add_user(username.clone(), password.clone(), role.clone().parse::().unwrap(), Option::Some(¤t_user)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `server::run_server` [INFO] [stdout] --> src/public_api/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use server::run_server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `path::Path` [INFO] [stdout] --> src/logger/logger_manager.rs:1:61 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::{File, OpenOptions}, io::Write, path::PathBuf,path::Path}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use base64::decode; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:209:25 [INFO] [stdout] | [INFO] [stdout] 209 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:259:25 [INFO] [stdout] | [INFO] [stdout] 259 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use base64::decode; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:209:25 [INFO] [stdout] | [INFO] [stdout] 209 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/public_api/server.rs:259:25 [INFO] [stdout] | [INFO] [stdout] 259 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/public_api/server.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut current_user:User; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/public_api/server.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut current_user:User; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `windows_persistent_file_name` [INFO] [stdout] --> src/cache/cache.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let windows_persistent_file_name = format!("rus/persistent_{}.rus",now.format("%d-%m-%Y")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_windows_persistent_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_file` [INFO] [stdout] --> src/cache/cache.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let main_file = { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cache/cache.rs:79:25 [INFO] [stdout] | [INFO] [stdout] 79 | let mut trimmed_command = command.trim_matches(|c| c == '\"'); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_result` [INFO] [stdout] --> src/cache/cache.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let set_result = self.set(cluster, key, vec_u8, None,true); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cache/cache.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let mut memory_handler = self.memory_handler.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/cache/cache.rs:208:39 [INFO] [stdout] | [INFO] [stdout] 208 | cluster_store.retain(|k, (_, expiration_time, _)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `windows_persistent_file_name` [INFO] [stdout] --> src/cache/cache.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let windows_persistent_file_name = format!("rus/persistent_{}.rus",now.format("%d-%m-%Y")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_windows_persistent_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_file` [INFO] [stdout] --> src/cache/cache.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let main_file = { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cache/cache.rs:79:25 [INFO] [stdout] | [INFO] [stdout] 79 | let mut trimmed_command = command.trim_matches(|c| c == '\"'); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_result` [INFO] [stdout] --> src/cache/cache.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let set_result = self.set(cluster, key, vec_u8, None,true); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cache/cache.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let mut memory_handler = self.memory_handler.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/cache/cache.rs:208:39 [INFO] [stdout] | [INFO] [stdout] 208 | cluster_store.retain(|k, (_, expiration_time, _)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiration_time` [INFO] [stdout] --> src/cache/cache.rs:382:27 [INFO] [stdout] | [INFO] [stdout] 382 | for (key, (_, expiration_time, _)) in cluster_store { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiration_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/cache/cache.rs:405:34 [INFO] [stdout] | [INFO] [stdout] 405 | .map(|(key, (value, _, _))| (cluster_key.clone(), key.clone())) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiration_time` [INFO] [stdout] --> src/cache/cache.rs:382:27 [INFO] [stdout] | [INFO] [stdout] 382 | for (key, (_, expiration_time, _)) in cluster_store { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiration_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/cache/cache.rs:405:34 [INFO] [stdout] | [INFO] [stdout] 405 | .map(|(key, (value, _, _))| (cluster_key.clone(), key.clone())) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encryptor` [INFO] [stdout] --> src/creds/cred_manager.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let encryptor = Encryptor::new(ENCRYPT_KEY, IV_PATTERN); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encryptor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encryptor` [INFO] [stdout] --> src/creds/cred_manager.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let encryptor = Encryptor::new(ENCRYPT_KEY, IV_PATTERN); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encryptor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encryptor` [INFO] [stdout] --> src/creds/cred_manager.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let encryptor = Encryptor::new(ENCRYPT_KEY, IV_PATTERN); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encryptor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encryptor` [INFO] [stdout] --> src/creds/cred_manager.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let encryptor = Encryptor::new(ENCRYPT_KEY, IV_PATTERN); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encryptor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `UserRequest` is more private than the item `add_user` [INFO] [stdout] --> src/public_api/server.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / pub async fn add_user( [INFO] [stdout] 54 | | creds: web::Data>>, [INFO] [stdout] 55 | | payload: web::Json, [INFO] [stdout] 56 | | req: HttpRequest, [INFO] [stdout] 57 | | ) -> HttpResponse { [INFO] [stdout] | |_________________^ function `add_user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `UserRequest` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/public_api/server.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct UserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `UserRequest` is more private than the item `authenticate_user` [INFO] [stdout] --> src/public_api/server.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | / pub async fn authenticate_user( [INFO] [stdout] 86 | | creds: web::Data>>, [INFO] [stdout] 87 | | payload: web::Json, [INFO] [stdout] 88 | | ) -> HttpResponse { [INFO] [stdout] | |_________________^ function `authenticate_user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `UserRequest` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/public_api/server.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct UserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `SetRequest` is more private than the item `set` [INFO] [stdout] --> src/public_api/server.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | / pub async fn set( [INFO] [stdout] 105 | | cache: web::Data>>, [INFO] [stdout] 106 | | creds: web::Data>>, [INFO] [stdout] 107 | | payload: web::Json, [INFO] [stdout] 108 | | req: HttpRequest, [INFO] [stdout] 109 | | ) -> HttpResponse { [INFO] [stdout] | |_________________^ function `set` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `SetRequest` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/public_api/server.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | struct SetRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port` and `creds_manager` are never read [INFO] [stdout] --> src/cache/cache.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Cache { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | creds_manager: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cache` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `configure_default_port`, `get_default_port`, and `clear_expired` are never used [INFO] [stdout] --> src/cache/cache.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Cache { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn configure_default_port(&mut self, port: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn get_default_port(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn clear_expired(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_manage_cache` is never used [INFO] [stdout] --> src/creds/cred_manager.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl RoleManagement { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn can_manage_cache(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_admin` is never used [INFO] [stdout] --> src/creds/cred_manager.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl CredsManager { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 233 | fn create_admin(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 178 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cache/cache.rs:240:66 [INFO] [stdout] | [INFO] [stdout] 240 | let command = format!("DEL {} {}",cluster.clone(),key.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cache/cache.rs:240:78 [INFO] [stdout] | [INFO] [stdout] 240 | let command = format!("DEL {} {}",cluster.clone(),key.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 241 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cache/cache.rs:258:69 [INFO] [stdout] | [INFO] [stdout] 258 | let command = format!("CLEAR_CLUSTER {}",cluster.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 259 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 276 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | self.users.get(username.clone()).unwrap().clone() [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:139:98 [INFO] [stdout] | [INFO] [stdout] 139 | ... let message = &format!("password not match with user : {:?}",username.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:159:101 [INFO] [stdout] | [INFO] [stdout] 159 | let message = &format!("Users [{}] with password:[{:?}] not found in login",username.clone(),password.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:159:118 [INFO] [stdout] | [INFO] [stdout] 159 | let message = &format!("Users [{}] with password:[{:?}] not found in login",username.clone(),password.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/creds/cred_manager.rs:255:17 [INFO] [stdout] | [INFO] [stdout] 255 | fs::create_dir_all(&path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 255 | let _ = fs::create_dir_all(&path); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/creds/cred_manager.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | self.add_user("admin".to_string(), "123456".to_string(), RoleManagement::Admin, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 263 | let _ = self.add_user("admin".to_string(), "123456".to_string(), RoleManagement::Admin, None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `persistent_Manager` should have a snake case name [INFO] [stdout] --> src/persistent/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod persistent_Manager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `persistent_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:113:36 [INFO] [stdout] | [INFO] [stdout] 113 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:143:36 [INFO] [stdout] | [INFO] [stdout] 143 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:166:36 [INFO] [stdout] | [INFO] [stdout] 166 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:187:36 [INFO] [stdout] | [INFO] [stdout] 187 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:209:36 [INFO] [stdout] | [INFO] [stdout] 209 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:230:36 [INFO] [stdout] | [INFO] [stdout] 230 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:259:36 [INFO] [stdout] | [INFO] [stdout] 259 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/logger/logger_manager.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | std::fs::create_dir_all(file_dir_path.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = std::fs::create_dir_all(file_dir_path.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `UserRequest` is more private than the item `add_user` [INFO] [stdout] --> src/public_api/server.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / pub async fn add_user( [INFO] [stdout] 54 | | creds: web::Data>>, [INFO] [stdout] 55 | | payload: web::Json, [INFO] [stdout] 56 | | req: HttpRequest, [INFO] [stdout] 57 | | ) -> HttpResponse { [INFO] [stdout] | |_________________^ function `add_user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `UserRequest` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/public_api/server.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct UserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `UserRequest` is more private than the item `authenticate_user` [INFO] [stdout] --> src/public_api/server.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | / pub async fn authenticate_user( [INFO] [stdout] 86 | | creds: web::Data>>, [INFO] [stdout] 87 | | payload: web::Json, [INFO] [stdout] 88 | | ) -> HttpResponse { [INFO] [stdout] | |_________________^ function `authenticate_user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `UserRequest` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/public_api/server.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct UserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `SetRequest` is more private than the item `set` [INFO] [stdout] --> src/public_api/server.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | / pub async fn set( [INFO] [stdout] 105 | | cache: web::Data>>, [INFO] [stdout] 106 | | creds: web::Data>>, [INFO] [stdout] 107 | | payload: web::Json, [INFO] [stdout] 108 | | req: HttpRequest, [INFO] [stdout] 109 | | ) -> HttpResponse { [INFO] [stdout] | |_________________^ function `set` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `SetRequest` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/public_api/server.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | struct SetRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port` and `creds_manager` are never read [INFO] [stdout] --> src/cache/cache.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Cache { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | creds_manager: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cache` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `configure_default_port`, `get_default_port`, and `clear_expired` are never used [INFO] [stdout] --> src/cache/cache.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Cache { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn configure_default_port(&mut self, port: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn get_default_port(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn clear_expired(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_manage_cache` is never used [INFO] [stdout] --> src/creds/cred_manager.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl RoleManagement { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn can_manage_cache(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_admin` is never used [INFO] [stdout] --> src/creds/cred_manager.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl CredsManager { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 233 | fn create_admin(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 178 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cache/cache.rs:240:66 [INFO] [stdout] | [INFO] [stdout] 240 | let command = format!("DEL {} {}",cluster.clone(),key.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cache/cache.rs:240:78 [INFO] [stdout] | [INFO] [stdout] 240 | let command = format!("DEL {} {}",cluster.clone(),key.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 241 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/cache/cache.rs:258:69 [INFO] [stdout] | [INFO] [stdout] 258 | let command = format!("CLEAR_CLUSTER {}",cluster.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 259 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cache/cache.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 276 | let _ = persistent_Manager::write_to_persistent_file(&command); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | self.users.get(username.clone()).unwrap().clone() [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:139:98 [INFO] [stdout] | [INFO] [stdout] 139 | ... let message = &format!("password not match with user : {:?}",username.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:159:101 [INFO] [stdout] | [INFO] [stdout] 159 | let message = &format!("Users [{}] with password:[{:?}] not found in login",username.clone(),password.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/creds/cred_manager.rs:159:118 [INFO] [stdout] | [INFO] [stdout] 159 | let message = &format!("Users [{}] with password:[{:?}] not found in login",username.clone(),password.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/creds/cred_manager.rs:255:17 [INFO] [stdout] | [INFO] [stdout] 255 | fs::create_dir_all(&path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 255 | let _ = fs::create_dir_all(&path); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/creds/cred_manager.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | self.add_user("admin".to_string(), "123456".to_string(), RoleManagement::Admin, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 263 | let _ = self.add_user("admin".to_string(), "123456".to_string(), RoleManagement::Admin, None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `persistent_Manager` should have a snake case name [INFO] [stdout] --> src/persistent/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod persistent_Manager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `persistent_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:113:36 [INFO] [stdout] | [INFO] [stdout] 113 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:143:36 [INFO] [stdout] | [INFO] [stdout] 143 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:166:36 [INFO] [stdout] | [INFO] [stdout] 166 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:187:36 [INFO] [stdout] | [INFO] [stdout] 187 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:209:36 [INFO] [stdout] | [INFO] [stdout] 209 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:230:36 [INFO] [stdout] | [INFO] [stdout] 230 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/public_api/server.rs:259:36 [INFO] [stdout] | [INFO] [stdout] 259 | let decoded_bytes = decode(auth.clone()).expect("Failed to decode Base64 string"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/logger/logger_manager.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | std::fs::create_dir_all(file_dir_path.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = std::fs::create_dir_all(file_dir_path.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.30s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.1.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "18d94ee6a89549d48244f045ab9b78ec470cb1a35f753a7a3ecd4c851ce31730", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18d94ee6a89549d48244f045ab9b78ec470cb1a35f753a7a3ecd4c851ce31730", kill_on_drop: false }` [INFO] [stdout] 18d94ee6a89549d48244f045ab9b78ec470cb1a35f753a7a3ecd4c851ce31730