[INFO] fetching crate libomni 0.3.0... [INFO] testing libomni-0.3.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate libomni 0.3.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate libomni 0.3.0 [INFO] finished tweaking crates.io crate libomni 0.3.0 [INFO] tweaked toml for crates.io crate libomni 0.3.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate libomni 0.3.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate libomni 0.3.0 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3032c61db398ef5c0d47ecc531e7afc4e918473ec62ba4a51206bd07e3be460b [INFO] running `Command { std: "docker" "start" "-a" "3032c61db398ef5c0d47ecc531e7afc4e918473ec62ba4a51206bd07e3be460b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3032c61db398ef5c0d47ecc531e7afc4e918473ec62ba4a51206bd07e3be460b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3032c61db398ef5c0d47ecc531e7afc4e918473ec62ba4a51206bd07e3be460b", kill_on_drop: false }` [INFO] [stdout] 3032c61db398ef5c0d47ecc531e7afc4e918473ec62ba4a51206bd07e3be460b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cab85644bf4d760cc4baa693795f8c9e7946b0f17e4a554c7bd1f79c4788dc59 [INFO] running `Command { std: "docker" "start" "-a" "cab85644bf4d760cc4baa693795f8c9e7946b0f17e4a554c7bd1f79c4788dc59", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling base64ct v1.7.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling deranged v0.4.1 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rustls v0.23.25 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling webpki-roots v0.26.10 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling rustix v1.0.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling rustls-webpki v0.103.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling rsa v0.9.8 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling chrysalis_rs v0.1.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling sqlx-mysql v0.8.6 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling libomni v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/app.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [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 import: `std::collections::HashMap` [INFO] [stdout] --> src/types/db/v1/alert.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/v1/alert.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/alert.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/alert.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/build.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/instance.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/org.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/org.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/types/db/v1/permission.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/region.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/region.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/region.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JsonValue` and `chrono::NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/user.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::types::{chrono::NaiveDateTime, JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/types/db/v1/user.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::types::Json` [INFO] [stdout] --> src/types/db/v1/user.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::types::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encode` [INFO] [stdout] --> src/types/db/v1/user.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use jsonwebtoken::{decode, encode, DecodingKey, Validation, Algorithm}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/v1/worker.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/metrics.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/types/db/v1/metrics.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/provider.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/provider.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/provider.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/storage.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/storage.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/storage.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/notification.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/notification.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/util_tables.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/role.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/types/db/v1/role.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::Status` [INFO] [stdout] --> src/types/db/auth.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::http::Status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `Outcome`, and `Request` [INFO] [stdout] --> src/types/db/auth.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::request::{FromRequest, Outcome, Request}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::MySqlPool` [INFO] [stdout] --> src/types/db/auth.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::MySqlPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/types/db/auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Algorithm`, `DecodingKey`, `EncodingKey`, `Header`, `Validation`, `decode`, and `encode` [INFO] [stdout] --> src/types/db/auth.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation, Algorithm}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::State` [INFO] [stdout] --> src/types/db/auth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::State; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, and `Utc` [INFO] [stdout] --> src/types/db/auth.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::{DateTime, Utc, Duration}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/types/db/auth.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/auth.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get`, `post`, and `routes` [INFO] [stdout] --> src/types/db/auth.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use rocket::{post, get, routes}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/alert.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/audit_log.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/build.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/instance.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/permission.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/region.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/user.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/worker.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/backup.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/metrics.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/provider.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/storage.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/notification.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/cost.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/role.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/types/volume.rs:330:19 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn create(config: VolumeConfig) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_id` [INFO] [stdout] --> src/types/volume.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn attach(&mut self, node_id: &str) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_size` [INFO] [stdout] --> src/types/volume.rs:354:30 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn expand(&mut self, new_size: u64) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/types/volume.rs:360:28 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn snapshot(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snapshot` [INFO] [stdout] --> src/types/volume.rs:366:45 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn restore_from_snapshot(&mut self, snapshot: &VolumeSnapshot) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snapshot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/types/volume.rs:372:25 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn clone(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_type` [INFO] [stdout] --> src/types/volume.rs:378:29 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn transform(&self, to_type: String) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qos` [INFO] [stdout] --> src/types/volume.rs:396:34 [INFO] [stdout] | [INFO] [stdout] 396 | pub fn update_qos(&mut self, qos: QoSConfig) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `security` [INFO] [stdout] --> src/types/volume.rs:402:39 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn update_security(&mut self, security: SecurityConfig) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_security` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `policy` [INFO] [stdout] --> src/types/volume.rs:408:44 [INFO] [stdout] | [INFO] [stdout] 408 | pub fn update_backup_policy(&mut self, policy: BackupPolicy) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_policy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `creation_time`, `last_modified`, `status`, and `labels` are never read [INFO] [stdout] --> src/types/volume.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct VolumeMetadata { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | creation_time: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | last_modified: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | status: VolumeStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | labels: HashMap, // For organization/selection [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `iops_limit`, `throughput_limit`, `iops_guarantee`, `throughput_guarantee`, and `burstable` are never read [INFO] [stdout] --> src/types/volume.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct QoSConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 17 | iops_limit: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | throughput_limit: Option, // bytes per second [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | iops_guarantee: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | throughput_guarantee: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | burstable: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `duration`, `iops_multiplier`, and `throughput_multiplier` are never read [INFO] [stdout] --> src/types/volume.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BurstConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 26 | duration: chrono::Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | iops_multiplier: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | throughput_multiplier: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `encryption_enabled`, `encryption_algorithm`, `key_management`, and `access_policies` are never read [INFO] [stdout] --> src/types/volume.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct SecurityConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 33 | encryption_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | encryption_algorithm: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | key_management: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | access_policies: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `allowed_users`, `allowed_groups`, and `allowed_operations` are never read [INFO] [stdout] --> src/types/volume.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct AccessPolicy { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 49 | allowed_users: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 50 | allowed_groups: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 51 | allowed_operations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schedule`, `retention`, `consistency_type`, and `target_location` are never read [INFO] [stdout] --> src/types/volume.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct BackupPolicy { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 66 | schedule: String, // cron format [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 67 | retention: RetentionPolicy, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 68 | consistency_type: ConsistencyType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | target_location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `daily`, `weekly`, `monthly`, and `yearly` are never read [INFO] [stdout] --> src/types/volume.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct RetentionPolicy { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 81 | daily: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 82 | weekly: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | monthly: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 84 | yearly: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `size`, `name`, `metadata`, `qos`, and `security` are never read [INFO] [stdout] --> src/types/volume.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct EphemeralVolume { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 173 | id: Uuid, // Unique identifier for the volume [INFO] [stdout] | ^^ [INFO] [stdout] 174 | size: u64, // Size in bytes [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | name: String, // Name of the volume [INFO] [stdout] | ^^^^ [INFO] [stdout] 176 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 177 | qos: Option, // QoS settings for performance [INFO] [stdout] | ^^^ [INFO] [stdout] 178 | security: Option, // Security settings [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/types/volume.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub struct SharedVolume { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 182 | id: Uuid, // Unique identifier for the volume [INFO] [stdout] | ^^ [INFO] [stdout] 183 | size: u64, // Size in bytes [INFO] [stdout] | ^^^^ [INFO] [stdout] 184 | name: String, // Name of the volume [INFO] [stdout] | ^^^^ [INFO] [stdout] 185 | status: String, // Status of the volume (e.g., "available", "in-use") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 186 | nodes: Vec, // List of nodes sharing this volume [INFO] [stdout] | ^^^^^ [INFO] [stdout] 187 | access_mode: AccessMode, // Access mode (RWO, ROX, RWX) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 188 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 189 | qos: Option, // QoS settings for performance [INFO] [stdout] | ^^^ [INFO] [stdout] 190 | security: Option, // Security settings [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 191 | backup_policy: Option, // Backup settings [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `source_volume_id`, `name`, `creation_time`, `size`, and `consistency_type` are never read [INFO] [stdout] --> src/types/volume.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 294 | pub struct VolumeSnapshot { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 295 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 296 | source_volume_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 297 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 298 | creation_time: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 299 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 300 | consistency_type: ConsistencyType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/types/volume.rs:318:5 [INFO] [stdout] | [INFO] [stdout] 317 | pub struct VolumeConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 318 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 319 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 320 | volume_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 321 | access_mode: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 322 | qos: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 323 | security: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 324 | backup_policy: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 325 | labels: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_status` is never used [INFO] [stdout] --> src/types/db/v1/worker.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn default_status() -> WorkerStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 09s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "cab85644bf4d760cc4baa693795f8c9e7946b0f17e4a554c7bd1f79c4788dc59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cab85644bf4d760cc4baa693795f8c9e7946b0f17e4a554c7bd1f79c4788dc59", kill_on_drop: false }` [INFO] [stdout] cab85644bf4d760cc4baa693795f8c9e7946b0f17e4a554c7bd1f79c4788dc59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08ed80cc54482a7f24432ac40218cfad5bdf2b54129a9260e653c13517919597 [INFO] running `Command { std: "docker" "start" "-a" "08ed80cc54482a7f24432ac40218cfad5bdf2b54129a9260e653c13517919597", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/app.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [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 import: `std::collections::HashMap` [INFO] [stdout] --> src/types/db/v1/alert.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/v1/alert.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/alert.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/alert.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/build.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/instance.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/org.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/org.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/types/db/v1/permission.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/region.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/region.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/region.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JsonValue` and `chrono::NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/user.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::types::{chrono::NaiveDateTime, JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/types/db/v1/user.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::types::Json` [INFO] [stdout] --> src/types/db/v1/user.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::types::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encode` [INFO] [stdout] --> src/types/db/v1/user.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use jsonwebtoken::{decode, encode, DecodingKey, Validation, Algorithm}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/v1/worker.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/metrics.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/types/db/v1/metrics.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/provider.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/provider.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/provider.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/storage.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/storage.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/storage.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/notification.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/notification.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/util_tables.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/role.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/types/db/v1/role.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::Status` [INFO] [stdout] --> src/types/db/auth.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::http::Status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `Outcome`, and `Request` [INFO] [stdout] --> src/types/db/auth.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::request::{FromRequest, Outcome, Request}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::MySqlPool` [INFO] [stdout] --> src/types/db/auth.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::MySqlPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/types/db/auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Algorithm`, `DecodingKey`, `EncodingKey`, `Header`, `Validation`, `decode`, and `encode` [INFO] [stdout] --> src/types/db/auth.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation, Algorithm}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::State` [INFO] [stdout] --> src/types/db/auth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::State; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, and `Utc` [INFO] [stdout] --> src/types/db/auth.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::{DateTime, Utc, Duration}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/types/db/auth.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/auth.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get`, `post`, and `routes` [INFO] [stdout] --> src/types/db/auth.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use rocket::{post, get, routes}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/alert.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/audit_log.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/build.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/instance.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/permission.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/region.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/user.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/worker.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/backup.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/metrics.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/provider.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/storage.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/notification.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/cost.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/role.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/types/volume.rs:330:19 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn create(config: VolumeConfig) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling libomni v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `node_id` [INFO] [stdout] --> src/types/volume.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn attach(&mut self, node_id: &str) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_size` [INFO] [stdout] --> src/types/volume.rs:354:30 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn expand(&mut self, new_size: u64) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/types/volume.rs:360:28 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn snapshot(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snapshot` [INFO] [stdout] --> src/types/volume.rs:366:45 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn restore_from_snapshot(&mut self, snapshot: &VolumeSnapshot) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snapshot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/types/volume.rs:372:25 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn clone(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_type` [INFO] [stdout] --> src/types/volume.rs:378:29 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn transform(&self, to_type: String) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qos` [INFO] [stdout] --> src/types/volume.rs:396:34 [INFO] [stdout] | [INFO] [stdout] 396 | pub fn update_qos(&mut self, qos: QoSConfig) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `security` [INFO] [stdout] --> src/types/volume.rs:402:39 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn update_security(&mut self, security: SecurityConfig) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_security` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `policy` [INFO] [stdout] --> src/types/volume.rs:408:44 [INFO] [stdout] | [INFO] [stdout] 408 | pub fn update_backup_policy(&mut self, policy: BackupPolicy) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_policy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `creation_time`, `last_modified`, `status`, and `labels` are never read [INFO] [stdout] --> src/types/volume.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct VolumeMetadata { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | creation_time: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | last_modified: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | status: VolumeStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | labels: HashMap, // For organization/selection [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `iops_limit`, `throughput_limit`, `iops_guarantee`, `throughput_guarantee`, and `burstable` are never read [INFO] [stdout] --> src/types/volume.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct QoSConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 17 | iops_limit: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | throughput_limit: Option, // bytes per second [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | iops_guarantee: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | throughput_guarantee: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | burstable: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `duration`, `iops_multiplier`, and `throughput_multiplier` are never read [INFO] [stdout] --> src/types/volume.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BurstConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 26 | duration: chrono::Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | iops_multiplier: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | throughput_multiplier: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `encryption_enabled`, `encryption_algorithm`, `key_management`, and `access_policies` are never read [INFO] [stdout] --> src/types/volume.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct SecurityConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 33 | encryption_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | encryption_algorithm: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | key_management: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | access_policies: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `allowed_users`, `allowed_groups`, and `allowed_operations` are never read [INFO] [stdout] --> src/types/volume.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct AccessPolicy { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 49 | allowed_users: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 50 | allowed_groups: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 51 | allowed_operations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schedule`, `retention`, `consistency_type`, and `target_location` are never read [INFO] [stdout] --> src/types/volume.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct BackupPolicy { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 66 | schedule: String, // cron format [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 67 | retention: RetentionPolicy, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 68 | consistency_type: ConsistencyType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | target_location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `daily`, `weekly`, `monthly`, and `yearly` are never read [INFO] [stdout] --> src/types/volume.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct RetentionPolicy { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 81 | daily: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 82 | weekly: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | monthly: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 84 | yearly: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `size`, `name`, `metadata`, `qos`, and `security` are never read [INFO] [stdout] --> src/types/volume.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct EphemeralVolume { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 173 | id: Uuid, // Unique identifier for the volume [INFO] [stdout] | ^^ [INFO] [stdout] 174 | size: u64, // Size in bytes [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | name: String, // Name of the volume [INFO] [stdout] | ^^^^ [INFO] [stdout] 176 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 177 | qos: Option, // QoS settings for performance [INFO] [stdout] | ^^^ [INFO] [stdout] 178 | security: Option, // Security settings [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/types/volume.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub struct SharedVolume { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 182 | id: Uuid, // Unique identifier for the volume [INFO] [stdout] | ^^ [INFO] [stdout] 183 | size: u64, // Size in bytes [INFO] [stdout] | ^^^^ [INFO] [stdout] 184 | name: String, // Name of the volume [INFO] [stdout] | ^^^^ [INFO] [stdout] 185 | status: String, // Status of the volume (e.g., "available", "in-use") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 186 | nodes: Vec, // List of nodes sharing this volume [INFO] [stdout] | ^^^^^ [INFO] [stdout] 187 | access_mode: AccessMode, // Access mode (RWO, ROX, RWX) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 188 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 189 | qos: Option, // QoS settings for performance [INFO] [stdout] | ^^^ [INFO] [stdout] 190 | security: Option, // Security settings [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 191 | backup_policy: Option, // Backup settings [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `source_volume_id`, `name`, `creation_time`, `size`, and `consistency_type` are never read [INFO] [stdout] --> src/types/volume.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 294 | pub struct VolumeSnapshot { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 295 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 296 | source_volume_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 297 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 298 | creation_time: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 299 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 300 | consistency_type: ConsistencyType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/types/volume.rs:318:5 [INFO] [stdout] | [INFO] [stdout] 317 | pub struct VolumeConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 318 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 319 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 320 | volume_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 321 | access_mode: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 322 | qos: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 323 | security: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 324 | backup_policy: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 325 | labels: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_status` is never used [INFO] [stdout] --> src/types/db/v1/worker.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn default_status() -> WorkerStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/app.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [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 import: `std::collections::HashMap` [INFO] [stdout] --> src/types/db/v1/alert.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/v1/alert.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/alert.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/alert.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/build.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/instance.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/org.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/org.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/types/db/v1/permission.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/region.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/region.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/region.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JsonValue` and `chrono::NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/user.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::types::{chrono::NaiveDateTime, JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/types/db/v1/user.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::types::Json` [INFO] [stdout] --> src/types/db/v1/user.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::types::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encode` [INFO] [stdout] --> src/types/db/v1/user.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use jsonwebtoken::{decode, encode, DecodingKey, Validation, Algorithm}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/v1/worker.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/metrics.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/types/db/v1/metrics.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/provider.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/provider.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/provider.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/storage.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/storage.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/storage.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/notification.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/types/db/v1/notification.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/types/db/v1/util_tables.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/types/db/v1/role.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/types/db/v1/role.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::Status` [INFO] [stdout] --> src/types/db/auth.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::http::Status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `Outcome`, and `Request` [INFO] [stdout] --> src/types/db/auth.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use rocket::request::{FromRequest, Outcome, Request}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::MySqlPool` [INFO] [stdout] --> src/types/db/auth.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::MySqlPool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/types/db/auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Algorithm`, `DecodingKey`, `EncodingKey`, `Header`, `Validation`, `decode`, and `encode` [INFO] [stdout] --> src/types/db/auth.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation, Algorithm}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::State` [INFO] [stdout] --> src/types/db/auth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::State; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, and `Utc` [INFO] [stdout] --> src/types/db/auth.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::{DateTime, Utc, Duration}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/types/db/auth.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/types/db/auth.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get`, `post`, and `routes` [INFO] [stdout] --> src/types/db/auth.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | use rocket::{post, get, routes}; [INFO] [stdout] | ^^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/alert.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/audit_log.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/build.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/instance.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/permission.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/region.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/user.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/worker.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/backup.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/metrics.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/provider.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/storage.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Row` [INFO] [stdout] --> src/types/db/v1/notification.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::Row; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/cost.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/types/db/v1/role.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{Row, FromRow}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/types/volume.rs:330:19 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn create(config: VolumeConfig) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_id` [INFO] [stdout] --> src/types/volume.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn attach(&mut self, node_id: &str) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_size` [INFO] [stdout] --> src/types/volume.rs:354:30 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn expand(&mut self, new_size: u64) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/types/volume.rs:360:28 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn snapshot(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snapshot` [INFO] [stdout] --> src/types/volume.rs:366:45 [INFO] [stdout] | [INFO] [stdout] 366 | pub fn restore_from_snapshot(&mut self, snapshot: &VolumeSnapshot) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snapshot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/types/volume.rs:372:25 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn clone(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_type` [INFO] [stdout] --> src/types/volume.rs:378:29 [INFO] [stdout] | [INFO] [stdout] 378 | pub fn transform(&self, to_type: String) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qos` [INFO] [stdout] --> src/types/volume.rs:396:34 [INFO] [stdout] | [INFO] [stdout] 396 | pub fn update_qos(&mut self, qos: QoSConfig) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `security` [INFO] [stdout] --> src/types/volume.rs:402:39 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn update_security(&mut self, security: SecurityConfig) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_security` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `policy` [INFO] [stdout] --> src/types/volume.rs:408:44 [INFO] [stdout] | [INFO] [stdout] 408 | pub fn update_backup_policy(&mut self, policy: BackupPolicy) -> Result<(), VolumeError> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_policy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `creation_time`, `last_modified`, `status`, and `labels` are never read [INFO] [stdout] --> src/types/volume.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct VolumeMetadata { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | creation_time: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | last_modified: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | status: VolumeStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | labels: HashMap, // For organization/selection [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `iops_limit`, `throughput_limit`, `iops_guarantee`, `throughput_guarantee`, and `burstable` are never read [INFO] [stdout] --> src/types/volume.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct QoSConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 17 | iops_limit: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | throughput_limit: Option, // bytes per second [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | iops_guarantee: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | throughput_guarantee: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | burstable: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `duration`, `iops_multiplier`, and `throughput_multiplier` are never read [INFO] [stdout] --> src/types/volume.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct BurstConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 26 | duration: chrono::Duration, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 27 | iops_multiplier: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | throughput_multiplier: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `encryption_enabled`, `encryption_algorithm`, `key_management`, and `access_policies` are never read [INFO] [stdout] --> src/types/volume.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct SecurityConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 33 | encryption_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | encryption_algorithm: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | key_management: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | access_policies: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `allowed_users`, `allowed_groups`, and `allowed_operations` are never read [INFO] [stdout] --> src/types/volume.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct AccessPolicy { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 49 | allowed_users: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 50 | allowed_groups: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 51 | allowed_operations: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schedule`, `retention`, `consistency_type`, and `target_location` are never read [INFO] [stdout] --> src/types/volume.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct BackupPolicy { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 66 | schedule: String, // cron format [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 67 | retention: RetentionPolicy, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 68 | consistency_type: ConsistencyType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | target_location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `daily`, `weekly`, `monthly`, and `yearly` are never read [INFO] [stdout] --> src/types/volume.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct RetentionPolicy { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 81 | daily: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 82 | weekly: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | monthly: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 84 | yearly: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `size`, `name`, `metadata`, `qos`, and `security` are never read [INFO] [stdout] --> src/types/volume.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct EphemeralVolume { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 173 | id: Uuid, // Unique identifier for the volume [INFO] [stdout] | ^^ [INFO] [stdout] 174 | size: u64, // Size in bytes [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | name: String, // Name of the volume [INFO] [stdout] | ^^^^ [INFO] [stdout] 176 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 177 | qos: Option, // QoS settings for performance [INFO] [stdout] | ^^^ [INFO] [stdout] 178 | security: Option, // Security settings [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/types/volume.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub struct SharedVolume { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 182 | id: Uuid, // Unique identifier for the volume [INFO] [stdout] | ^^ [INFO] [stdout] 183 | size: u64, // Size in bytes [INFO] [stdout] | ^^^^ [INFO] [stdout] 184 | name: String, // Name of the volume [INFO] [stdout] | ^^^^ [INFO] [stdout] 185 | status: String, // Status of the volume (e.g., "available", "in-use") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 186 | nodes: Vec, // List of nodes sharing this volume [INFO] [stdout] | ^^^^^ [INFO] [stdout] 187 | access_mode: AccessMode, // Access mode (RWO, ROX, RWX) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 188 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 189 | qos: Option, // QoS settings for performance [INFO] [stdout] | ^^^ [INFO] [stdout] 190 | security: Option, // Security settings [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 191 | backup_policy: Option, // Backup settings [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `source_volume_id`, `name`, `creation_time`, `size`, and `consistency_type` are never read [INFO] [stdout] --> src/types/volume.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 294 | pub struct VolumeSnapshot { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 295 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 296 | source_volume_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 297 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 298 | creation_time: chrono::DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 299 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 300 | consistency_type: ConsistencyType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/types/volume.rs:318:5 [INFO] [stdout] | [INFO] [stdout] 317 | pub struct VolumeConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 318 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 319 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 320 | volume_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 321 | access_mode: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 322 | qos: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 323 | security: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 324 | backup_policy: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 325 | labels: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_status` is never used [INFO] [stdout] --> src/types/db/v1/worker.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn default_status() -> WorkerStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "08ed80cc54482a7f24432ac40218cfad5bdf2b54129a9260e653c13517919597", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08ed80cc54482a7f24432ac40218cfad5bdf2b54129a9260e653c13517919597", kill_on_drop: false }` [INFO] [stdout] 08ed80cc54482a7f24432ac40218cfad5bdf2b54129a9260e653c13517919597 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5cb465d75a81af8a0412733906cbc331c104c462c91da0cf1a780af2e4374707 [INFO] running `Command { std: "docker" "start" "-a" "5cb465d75a81af8a0412733906cbc331c104c462c91da0cf1a780af2e4374707", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/app.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/types/db/v1/alert.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::serde::json::Json` [INFO] [stderr] --> src/types/db/v1/alert.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use rocket::serde::json::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/alert.rs:5:24 [INFO] [stderr] | [INFO] [stderr] 5 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/types/db/v1/alert.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/build.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/instance.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/org.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/org.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `FromRow` [INFO] [stderr] --> src/types/db/v1/permission.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::{Row, FromRow}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/region.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/region.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/types/db/v1/region.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `JsonValue` and `chrono::NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/user.rs:1:19 [INFO] [stderr] | [INFO] [stderr] 1 | use sqlx::types::{chrono::NaiveDateTime, JsonValue}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/types/db/v1/user.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::types::Json` [INFO] [stderr] --> src/types/db/v1/user.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use sqlx::types::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/types/db/v1/user.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `encode` [INFO] [stderr] --> src/types/db/v1/user.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | use jsonwebtoken::{decode, encode, DecodingKey, Validation, Algorithm}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::serde::json::Json` [INFO] [stderr] --> src/types/db/v1/worker.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use rocket::serde::json::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/metrics.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime` and `Utc` [INFO] [stderr] --> src/types/db/v1/metrics.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/provider.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/provider.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/types/db/v1/provider.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/storage.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/storage.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/types/db/v1/storage.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/notification.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/types/db/v1/notification.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/types/db/v1/util_tables.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/types/db/v1/role.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `FromRow` [INFO] [stderr] --> src/types/db/v1/role.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::{Row, FromRow}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::http::Status` [INFO] [stderr] --> src/types/db/auth.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use rocket::http::Status; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FromRequest`, `Outcome`, and `Request` [INFO] [stderr] --> src/types/db/auth.rs:3:23 [INFO] [stderr] | [INFO] [stderr] 3 | use rocket::request::{FromRequest, Outcome, Request}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::MySqlPool` [INFO] [stderr] --> src/types/db/auth.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use sqlx::MySqlPool; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/types/db/auth.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Algorithm`, `DecodingKey`, `EncodingKey`, `Header`, `Validation`, `decode`, and `encode` [INFO] [stderr] --> src/types/db/auth.rs:7:20 [INFO] [stderr] | [INFO] [stderr] 7 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation, Algorithm}; [INFO] [stderr] | ^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::State` [INFO] [stderr] --> src/types/db/auth.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use rocket::State; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime`, `Duration`, and `Utc` [INFO] [stderr] --> src/types/db/auth.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | use chrono::{DateTime, Utc, Duration}; [INFO] [stderr] | ^^^^^^^^ ^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::json` [INFO] [stderr] --> src/types/db/auth.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use serde_json::json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::serde::json::Json` [INFO] [stderr] --> src/types/db/auth.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use rocket::serde::json::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `get`, `post`, and `routes` [INFO] [stderr] --> src/types/db/auth.rs:12:14 [INFO] [stderr] | [INFO] [stderr] 12 | use rocket::{post, get, routes}; [INFO] [stderr] | ^^^^ ^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/alert.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/audit_log.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/build.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/instance.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Row` [INFO] [stderr] --> src/types/db/v1/permission.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::{Row, FromRow}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/region.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/user.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/worker.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/backup.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/metrics.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/provider.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/storage.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Row` [INFO] [stderr] --> src/types/db/v1/notification.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use sqlx::Row; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Row` [INFO] [stderr] --> src/types/db/v1/cost.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::{Row, FromRow}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Row` [INFO] [stderr] --> src/types/db/v1/role.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::{Row, FromRow}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/types/volume.rs:330:19 [INFO] [stderr] | [INFO] [stderr] 330 | pub fn create(config: VolumeConfig) -> Result { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node_id` [INFO] [stderr] --> src/types/volume.rs:342:30 [INFO] [stderr] | [INFO] [stderr] 342 | pub fn attach(&mut self, node_id: &str) -> Result<(), VolumeError> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_size` [INFO] [stderr] --> src/types/volume.rs:354:30 [INFO] [stderr] | [INFO] [stderr] 354 | pub fn expand(&mut self, new_size: u64) -> Result<(), VolumeError> { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_size` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/types/volume.rs:360:28 [INFO] [stderr] | [INFO] [stderr] 360 | pub fn snapshot(&self, name: &str) -> Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `snapshot` [INFO] [stderr] --> src/types/volume.rs:366:45 [INFO] [stderr] | [INFO] [stderr] 366 | pub fn restore_from_snapshot(&mut self, snapshot: &VolumeSnapshot) -> Result<(), VolumeError> { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snapshot` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/types/volume.rs:372:25 [INFO] [stderr] | [INFO] [stderr] 372 | pub fn clone(&self, name: &str) -> Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `to_type` [INFO] [stderr] --> src/types/volume.rs:378:29 [INFO] [stderr] | [INFO] [stderr] 378 | pub fn transform(&self, to_type: String) -> Result { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_type` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `qos` [INFO] [stderr] --> src/types/volume.rs:396:34 [INFO] [stderr] | [INFO] [stderr] 396 | pub fn update_qos(&mut self, qos: QoSConfig) -> Result<(), VolumeError> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_qos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `security` [INFO] [stderr] --> src/types/volume.rs:402:39 [INFO] [stderr] | [INFO] [stderr] 402 | pub fn update_security(&mut self, security: SecurityConfig) -> Result<(), VolumeError> { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_security` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `policy` [INFO] [stderr] --> src/types/volume.rs:408:44 [INFO] [stderr] | [INFO] [stderr] 408 | pub fn update_backup_policy(&mut self, policy: BackupPolicy) -> Result<(), VolumeError> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_policy` [INFO] [stderr] [INFO] [stderr] warning: fields `creation_time`, `last_modified`, `status`, and `labels` are never read [INFO] [stderr] --> src/types/volume.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct VolumeMetadata { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 9 | creation_time: chrono::DateTime, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 10 | last_modified: chrono::DateTime, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 11 | status: VolumeStatus, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 12 | labels: HashMap, // For organization/selection [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `iops_limit`, `throughput_limit`, `iops_guarantee`, `throughput_guarantee`, and `burstable` are never read [INFO] [stderr] --> src/types/volume.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct QoSConfig { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 17 | iops_limit: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 18 | throughput_limit: Option, // bytes per second [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 19 | iops_guarantee: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 20 | throughput_guarantee: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 21 | burstable: Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `duration`, `iops_multiplier`, and `throughput_multiplier` are never read [INFO] [stderr] --> src/types/volume.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct BurstConfig { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 26 | duration: chrono::Duration, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 27 | iops_multiplier: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 28 | throughput_multiplier: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `encryption_enabled`, `encryption_algorithm`, `key_management`, and `access_policies` are never read [INFO] [stderr] --> src/types/volume.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 32 | pub struct SecurityConfig { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 33 | encryption_enabled: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 34 | encryption_algorithm: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 35 | key_management: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 36 | access_policies: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `allowed_users`, `allowed_groups`, and `allowed_operations` are never read [INFO] [stderr] --> src/types/volume.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 48 | pub struct AccessPolicy { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 49 | allowed_users: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 50 | allowed_groups: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 51 | allowed_operations: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `schedule`, `retention`, `consistency_type`, and `target_location` are never read [INFO] [stderr] --> src/types/volume.rs:66:5 [INFO] [stderr] | [INFO] [stderr] 65 | pub struct BackupPolicy { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 66 | schedule: String, // cron format [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 67 | retention: RetentionPolicy, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 68 | consistency_type: ConsistencyType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 69 | target_location: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `daily`, `weekly`, `monthly`, and `yearly` are never read [INFO] [stderr] --> src/types/volume.rs:81:5 [INFO] [stderr] | [INFO] [stderr] 80 | pub struct RetentionPolicy { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 81 | daily: u32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 82 | weekly: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 83 | monthly: u32, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 84 | yearly: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `id`, `size`, `name`, `metadata`, `qos`, and `security` are never read [INFO] [stderr] --> src/types/volume.rs:173:5 [INFO] [stderr] | [INFO] [stderr] 172 | pub struct EphemeralVolume { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 173 | id: Uuid, // Unique identifier for the volume [INFO] [stderr] | ^^ [INFO] [stderr] 174 | size: u64, // Size in bytes [INFO] [stderr] | ^^^^ [INFO] [stderr] 175 | name: String, // Name of the volume [INFO] [stderr] | ^^^^ [INFO] [stderr] 176 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 177 | qos: Option, // QoS settings for performance [INFO] [stderr] | ^^^ [INFO] [stderr] 178 | security: Option, // Security settings [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/types/volume.rs:182:5 [INFO] [stderr] | [INFO] [stderr] 181 | pub struct SharedVolume { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 182 | id: Uuid, // Unique identifier for the volume [INFO] [stderr] | ^^ [INFO] [stderr] 183 | size: u64, // Size in bytes [INFO] [stderr] | ^^^^ [INFO] [stderr] 184 | name: String, // Name of the volume [INFO] [stderr] | ^^^^ [INFO] [stderr] 185 | status: String, // Status of the volume (e.g., "available", "in-use") [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 186 | nodes: Vec, // List of nodes sharing this volume [INFO] [stderr] | ^^^^^ [INFO] [stderr] 187 | access_mode: AccessMode, // Access mode (RWO, ROX, RWX) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 188 | metadata: VolumeMetadata, // Metadata for tracking volume status and details [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 189 | qos: Option, // QoS settings for performance [INFO] [stderr] | ^^^ [INFO] [stderr] 190 | security: Option, // Security settings [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 191 | backup_policy: Option, // Backup settings [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `id`, `source_volume_id`, `name`, `creation_time`, `size`, and `consistency_type` are never read [INFO] [stderr] --> src/types/volume.rs:295:5 [INFO] [stderr] | [INFO] [stderr] 294 | pub struct VolumeSnapshot { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 295 | id: Uuid, [INFO] [stderr] | ^^ [INFO] [stderr] 296 | source_volume_id: Uuid, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 297 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 298 | creation_time: chrono::DateTime, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 299 | size: u64, [INFO] [stderr] | ^^^^ [INFO] [stderr] 300 | consistency_type: ConsistencyType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/types/volume.rs:318:5 [INFO] [stderr] | [INFO] [stderr] 317 | pub struct VolumeConfig { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 318 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 319 | size: u64, [INFO] [stderr] | ^^^^ [INFO] [stderr] 320 | volume_type: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 321 | access_mode: Option, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 322 | qos: Option, [INFO] [stderr] | ^^^ [INFO] [stderr] 323 | security: Option, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 324 | backup_policy: Option, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 325 | labels: HashMap, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `default_status` is never used [INFO] [stderr] --> src/types/db/v1/worker.rs:26:4 [INFO] [stderr] | [INFO] [stderr] 26 | fn default_status() -> WorkerStatus { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `libomni` (lib) generated 79 warnings (run `cargo fix --lib -p libomni` to apply 42 suggestions) [INFO] [stderr] warning: `libomni` (lib test) generated 79 warnings (79 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/libomni-4b33c707103c1766) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests libomni [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5cb465d75a81af8a0412733906cbc331c104c462c91da0cf1a780af2e4374707", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cb465d75a81af8a0412733906cbc331c104c462c91da0cf1a780af2e4374707", kill_on_drop: false }` [INFO] [stdout] 5cb465d75a81af8a0412733906cbc331c104c462c91da0cf1a780af2e4374707