[INFO] fetching crate ocloud 0.1.3...
[INFO] checking ocloud-0.1.3 against master#4cf5f9580233c36f6bc8db76e282ba8a1c1ea491 for pr-154585
[INFO] extracting crate ocloud 0.1.3 into /workspace/builds/worker-6-tc1/source
[INFO] started tweaking crates.io crate ocloud 0.1.3
[INFO] finished tweaking crates.io crate ocloud 0.1.3
[INFO] tweaked toml for crates.io crate ocloud 0.1.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate ocloud 0.1.3 on toolchain 4cf5f9580233c36f6bc8db76e282ba8a1c1ea491
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate ocloud 0.1.3 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" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded whoami v1.5.2
[INFO] [stderr]   Downloaded fd-lock v4.0.2
[INFO] [stderr]   Downloaded dyn-clone v1.0.18
[INFO] [stderr]   Downloaded sqlx-macros-core v0.8.3
[INFO] [stderr]   Downloaded sqlx-sqlite v0.8.3
[INFO] [stderr]   Downloaded guardian v1.2.0
[INFO] [stderr]   Downloaded sqlx-mysql v0.8.3
[INFO] [stderr]   Downloaded rsa v0.9.7
[INFO] [stderr]   Downloaded cc v1.2.11
[INFO] [stderr]   Downloaded rustyline v15.0.0
[INFO] [stderr]   Downloaded sqlx-postgres v0.8.3
[INFO] [stderr]   Downloaded sqlx v0.8.3
[INFO] [stderr]   Downloaded sqlx-core v0.8.3
[INFO] [stderr]   Downloaded toml_edit v0.22.23
[INFO] [stderr]   Downloaded key-mutex v0.1.3
[INFO] [stderr]   Downloaded winnow v0.7.0
[INFO] [stderr]   Downloaded sqlx-macros v0.8.3
[INFO] [stderr]   Downloaded tqdm v0.7.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ce5b6a5d2e4846eb00330c227893a65016c90576de80039ca7d1ad7cd193381e
[INFO] running `Command { std: "docker" "start" "-a" "ce5b6a5d2e4846eb00330c227893a65016c90576de80039ca7d1ad7cd193381e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ce5b6a5d2e4846eb00330c227893a65016c90576de80039ca7d1ad7cd193381e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ce5b6a5d2e4846eb00330c227893a65016c90576de80039ca7d1ad7cd193381e", kill_on_drop: false }`
[INFO] [stdout] ce5b6a5d2e4846eb00330c227893a65016c90576de80039ca7d1ad7cd193381e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 05aa0635bfedf51a15aa01de357820f2ead83f14b578b1953e880325efdaaa49
[INFO] running `Command { std: "docker" "start" "-a" "05aa0635bfedf51a15aa01de357820f2ead83f14b578b1953e880325efdaaa49", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling libc v0.2.169
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling cc v1.2.11
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling zerofrom v0.1.5
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]     Checking foldhash v0.1.4
[INFO] [stderr]    Compiling openssl v0.10.69
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling writeable v0.5.5
[INFO] [stderr]     Checking http v1.2.0
[INFO] [stderr]    Compiling litemap v0.7.4
[INFO] [stderr]     Checking hashbrown v0.15.2
[INFO] [stderr]    Compiling yoke v0.7.5
[INFO] [stderr]    Compiling native-tls v0.2.13
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling serde_json v1.0.138
[INFO] [stderr]    Compiling thiserror v2.0.11
[INFO] [stderr]    Compiling icu_locid_transform_data v1.5.0
[INFO] [stderr]    Compiling thiserror-impl v2.0.11
[INFO] [stderr]    Compiling zerovec v0.10.4
[INFO] [stderr]    Compiling icu_properties_data v1.5.0
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling once_cell v1.20.2
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling write16 v1.0.0
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling bitflags v2.8.0
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling utf16_iter v1.0.5
[INFO] [stderr]    Compiling icu_normalizer_data v1.5.0
[INFO] [stderr]     Checking tinystr v0.7.6
[INFO] [stderr]     Checking icu_collections v1.5.0
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking icu_locid v1.5.0
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling mio v1.0.3
[INFO] [stderr]    Compiling socket2 v0.5.8
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling openssl-sys v0.9.104
[INFO] [stderr]    Compiling log v0.4.25
[INFO] [stderr]    Compiling bytes v1.9.0
[INFO] [stderr]     Checking indexmap v2.7.1
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling tinyvec v1.8.1
[INFO] [stderr]     Checking icu_provider v1.5.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking icu_locid_transform v1.5.0
[INFO] [stderr]    Compiling tokio v1.43.0
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling ryu v1.0.19
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]     Checking icu_properties v1.5.1
[INFO] [stderr]    Compiling itoa v1.0.14
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling iana-time-zone v0.1.61
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling rustix v0.38.44
[INFO] [stderr]    Compiling getrandom v0.3.1
[INFO] [stderr]    Compiling crc v3.2.1
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling chrono v0.4.39
[INFO] [stderr]    Compiling event-listener v5.4.0
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling unicode-normalization v0.1.24
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling unicode-properties v0.1.3
[INFO] [stderr]     Checking linux-raw-sys v0.4.15
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]     Checking http-body-util v0.1.2
[INFO] [stderr]     Checking signal-hook v0.3.17
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]     Checking mio v0.8.11
[INFO] [stderr]    Compiling home v0.5.11
[INFO] [stderr]    Compiling whoami v1.5.2
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]     Checking icu_normalizer v1.5.0
[INFO] [stderr]     Checking signal-hook-mio v0.2.4
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]    Compiling nix v0.29.0
[INFO] [stderr]    Compiling tempfile v3.16.0
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]    Compiling multer v3.1.0
[INFO] [stderr]    Compiling portable-atomic v1.10.0
[INFO] [stderr]     Checking crossterm v0.25.0
[INFO] [stderr]     Checking nibble_vec v0.1.0
[INFO] [stderr]     Checking serde_with v3.12.0
[INFO] [stderr]     Checking toml_datetime v0.6.8
[INFO] [stderr]     Checking serde_spanned v0.6.8
[INFO] [stderr]     Checking is-terminal v0.4.15
[INFO] [stderr]    Compiling async-trait v0.1.86
[INFO] [stderr]     Checking endian-type v0.1.2
[INFO] [stderr]     Checking winnow v0.7.0
[INFO] [stderr]     Checking bytemuck v1.21.0
[INFO] [stderr]     Checking rustls-pki-types v1.11.0
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]     Checking rustls-pemfile v2.2.0
[INFO] [stderr]     Checking image v0.25.5
[INFO] [stderr]     Checking clap_builder v4.5.27
[INFO] [stderr]     Checking radix_trie v0.2.1
[INFO] [stderr]     Checking console v0.15.10
[INFO] [stderr]     Checking dashmap v5.5.3
[INFO] [stderr]     Checking newline-converter v0.3.0
[INFO] [stderr]     Checking fuzzy-matcher v0.3.7
[INFO] [stderr]     Checking serde_path_to_error v0.1.16
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]    Compiling clap_derive v4.5.24
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking x11rb v0.13.1
[INFO] [stderr]     Checking fd-lock v4.0.2
[INFO] [stderr]     Checking fxhash v0.2.1
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling axum-macros v0.4.2
[INFO] [stderr]     Checking guardian v1.2.0
[INFO] [stderr]     Checking number_prefix v0.4.0
[INFO] [stderr]     Checking dyn-clone v1.0.18
[INFO] [stderr]     Checking tracing-subscriber v0.3.19
[INFO] [stderr]     Checking inquire v0.7.5
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking indicatif v0.17.11
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking tqdm v0.7.0
[INFO] [stderr]     Checking dirs v5.0.1
[INFO] [stderr]     Checking pretty_env_logger v0.5.0
[INFO] [stderr]     Checking arboard v3.4.1
[INFO] [stderr]     Checking nanoid v0.4.0
[INFO] [stderr]    Compiling strum_macros v0.26.4
[INFO] [stderr]     Checking tower-http v0.6.2
[INFO] [stderr]     Checking toml_edit v0.22.23
[INFO] [stderr]    Compiling sqlx-core v0.8.3
[INFO] [stderr]     Checking rustyline v15.0.0
[INFO] [stderr]     Checking clap v4.5.27
[INFO] [stderr]     Checking bollard-stubs v1.47.1-rc.27.3.1
[INFO] [stderr]     Checking tokio-util v0.7.13
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking key-mutex v0.1.3
[INFO] [stderr]     Checking toml v0.8.19
[INFO] [stderr]    Compiling sqlx-postgres v0.8.3
[INFO] [stderr]     Checking h2 v0.4.7
[INFO] [stderr]     Checking hyper v1.6.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.3
[INFO] [stderr]     Checking hyper-util v0.1.10
[INFO] [stderr]     Checking hyperlocal v0.9.1
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]    Compiling sqlx-macros v0.8.3
[INFO] [stderr]     Checking reqwest v0.12.12
[INFO] [stderr]     Checking bollard v0.18.1
[INFO] [stderr]     Checking sqlx v0.8.3
[INFO] [stderr]     Checking ocloud v0.1.3 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `tracing::trace`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::trace;
[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: `super::PROGRAM_NAME`
[INFO] [stdout]  --> src/config/cli.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use super::PROGRAM_NAME;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HeaderValue`
[INFO] [stdout]  --> src/server/web/routes.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use axum::http::{self, HeaderValue, Method};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc` and `Mutex`
[INFO] [stdout]  --> src/server/web/handlers/media.rs:1:44
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io::Write, path::PathBuf, sync::{Arc, Mutex}, time::{SystemTime, UNIX_EPOCH}};
[INFO] [stdout]   |                                            ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Json` and `Query`
[INFO] [stdout]  --> src/server/web/handlers/media.rs:2:69
[INFO] [stdout]   |
[INFO] [stdout] 2 | ...Limit, Multipart, Path, Query, State}, http::{header, HeaderValue}, response::Response, routing::get, Json, Router};
[INFO] [stdout]   |                            ^^^^^                                                                         ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sync::Notify`
[INFO] [stdout]  --> src/server/web/handlers/media.rs:4:42
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::{fs::File, io::AsyncWriteExt, sync::Notify};
[INFO] [stdout]   |                                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `future::Future` and `pin::Pin`
[INFO] [stdout]  --> src/server/controllers/model.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{future::Future, path::{Path, PathBuf}, pin::Pin};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::extract::multipart::Field`
[INFO] [stdout]  --> src/server/controllers/model.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use axum::extract::multipart::Field;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Stream`
[INFO] [stdout]  --> src/server/controllers/model.rs:5:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | use futures::{Stream, StreamExt};
[INFO] [stdout]   |               ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha256`
[INFO] [stdout]  --> src/server/controllers/model.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | use sha2::{ Digest, Sha256};
[INFO] [stdout]   |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PgPool`
[INFO] [stdout]  --> src/server/controllers/model.rs:8:30
[INFO] [stdout]   |
[INFO] [stdout] 8 | use sqlx::{prelude::FromRow, PgPool};
[INFO] [stdout]   |                              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncRead`
[INFO] [stdout]  --> src/server/controllers/model.rs:9:28
[INFO] [stdout]   |
[INFO] [stdout] 9 | use tokio::{fs::File, io::{AsyncRead, AsyncReadExt}};
[INFO] [stdout]   |                            ^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bytes::Bytes`
[INFO] [stdout]   --> src/server/controllers/model.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::Bytes;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `files::FileController`
[INFO] [stdout]   --> src/server/controllers/model.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 | use super::{files::FileController};
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Mutex`, `Path`, `SystemTime`, `UNIX_EPOCH`, and `collections::HashMap`
[INFO] [stdout]  --> src/server/controllers/files.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, path::{Path, PathBuf}, sync::{Arc, Mutex}, time::{SystemTime, UNIX_EPOCH}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^^^^         ^^^^                        ^^^^^          ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]  --> src/server/controllers/files.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use serde::{Serialize, Deserialize};
[INFO] [stdout]   |             ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FromRow` and `PgRow`
[INFO] [stdout]  --> src/server/controllers/files.rs:6:51
[INFO] [stdout]   |
[INFO] [stdout] 6 | use sqlx::{postgres::{PgArguments, PgQueryResult, PgRow}, query::{Query}, FromRow, PgPool, Postgres, Row, Transaction};
[INFO] [stdout]   |                                                   ^^^^^                   ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Notify` and `RwLock`
[INFO] [stdout]  --> src/server/controllers/files.rs:7:24
[INFO] [stdout]   |
[INFO] [stdout] 7 | use tokio::{fs, sync::{Notify, RwLock}};
[INFO] [stdout]   |                        ^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `env`
[INFO] [stdout]  --> src/server/mod.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::{env, sync::Arc};
[INFO] [stdout]   |           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `model::ServerConfig`
[INFO] [stdout]  --> src/server/mod.rs:9:65
[INFO] [stdout]   |
[INFO] [stdout] 9 | use controllers::{files::{FileController, FileControllerInner}, model::ServerConfig};
[INFO] [stdout]   |                                                                 ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sync::RwLock`
[INFO] [stdout]   --> src/server/mod.rs:12:31
[INFO] [stdout]    |
[INFO] [stdout] 12 | use tokio::{net::TcpListener, sync::RwLock};
[INFO] [stdout]    |                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout]  --> src/cli/commands/upload.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tracing::{error, info, trace};
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env::set_var`
[INFO] [stdout]  --> src/cli/commands/server.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::env::set_var;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::PathBuf`
[INFO] [stdout]  --> src/cli/commands/server.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::PathBuf;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/cli/commands/server.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CLI_CONFIG`, `CONFIG_DIR`, `DATA_DIR`, and `PROGRAM_NAME`
[INFO] [stdout]  --> src/cli/commands/server.rs:8:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::config::{CLI_CONFIG, CONFIG_DIR, DATA_DIR, PROGRAM_NAME, SERVER_CONFIG};
[INFO] [stdout]   |                     ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing::trace`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::trace;
[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: `super::PROGRAM_NAME`
[INFO] [stdout]  --> src/config/cli.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use super::PROGRAM_NAME;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HeaderValue`
[INFO] [stdout]  --> src/server/web/routes.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use axum::http::{self, HeaderValue, Method};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc` and `Mutex`
[INFO] [stdout]  --> src/server/web/handlers/media.rs:1:44
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io::Write, path::PathBuf, sync::{Arc, Mutex}, time::{SystemTime, UNIX_EPOCH}};
[INFO] [stdout]   |                                            ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Json` and `Query`
[INFO] [stdout]  --> src/server/web/handlers/media.rs:2:69
[INFO] [stdout]   |
[INFO] [stdout] 2 | ...Limit, Multipart, Path, Query, State}, http::{header, HeaderValue}, response::Response, routing::get, Json, Router};
[INFO] [stdout]   |                            ^^^^^                                                                         ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sync::Notify`
[INFO] [stdout]  --> src/server/web/handlers/media.rs:4:42
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::{fs::File, io::AsyncWriteExt, sync::Notify};
[INFO] [stdout]   |                                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `future::Future` and `pin::Pin`
[INFO] [stdout]  --> src/server/controllers/model.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{future::Future, path::{Path, PathBuf}, pin::Pin};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::extract::multipart::Field`
[INFO] [stdout]  --> src/server/controllers/model.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use axum::extract::multipart::Field;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Stream`
[INFO] [stdout]  --> src/server/controllers/model.rs:5:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | use futures::{Stream, StreamExt};
[INFO] [stdout]   |               ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha256`
[INFO] [stdout]  --> src/server/controllers/model.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | use sha2::{ Digest, Sha256};
[INFO] [stdout]   |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PgPool`
[INFO] [stdout]  --> src/server/controllers/model.rs:8:30
[INFO] [stdout]   |
[INFO] [stdout] 8 | use sqlx::{prelude::FromRow, PgPool};
[INFO] [stdout]   |                              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AsyncReadExt` and `AsyncRead`
[INFO] [stdout]  --> src/server/controllers/model.rs:9:28
[INFO] [stdout]   |
[INFO] [stdout] 9 | use tokio::{fs::File, io::{AsyncRead, AsyncReadExt}};
[INFO] [stdout]   |                            ^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bytes::Bytes`
[INFO] [stdout]   --> src/server/controllers/model.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bytes::Bytes;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `files::FileController`
[INFO] [stdout]   --> src/server/controllers/model.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 | use super::{files::FileController};
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Mutex`, `Path`, `SystemTime`, `UNIX_EPOCH`, and `collections::HashMap`
[INFO] [stdout]  --> src/server/controllers/files.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, path::{Path, PathBuf}, sync::{Arc, Mutex}, time::{SystemTime, UNIX_EPOCH}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^^^^         ^^^^                        ^^^^^          ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]  --> src/server/controllers/files.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use serde::{Serialize, Deserialize};
[INFO] [stdout]   |             ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FromRow` and `PgRow`
[INFO] [stdout]  --> src/server/controllers/files.rs:6:51
[INFO] [stdout]   |
[INFO] [stdout] 6 | use sqlx::{postgres::{PgArguments, PgQueryResult, PgRow}, query::{Query}, FromRow, PgPool, Postgres, Row, Transaction};
[INFO] [stdout]   |                                                   ^^^^^                   ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Notify` and `RwLock`
[INFO] [stdout]  --> src/server/controllers/files.rs:7:24
[INFO] [stdout]   |
[INFO] [stdout] 7 | use tokio::{fs, sync::{Notify, RwLock}};
[INFO] [stdout]   |                        ^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `env`
[INFO] [stdout]  --> src/server/mod.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::{env, sync::Arc};
[INFO] [stdout]   |           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `model::ServerConfig`
[INFO] [stdout]  --> src/server/mod.rs:9:65
[INFO] [stdout]   |
[INFO] [stdout] 9 | use controllers::{files::{FileController, FileControllerInner}, model::ServerConfig};
[INFO] [stdout]   |                                                                 ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sync::RwLock`
[INFO] [stdout]   --> src/server/mod.rs:12:31
[INFO] [stdout]    |
[INFO] [stdout] 12 | use tokio::{net::TcpListener, sync::RwLock};
[INFO] [stdout]    |                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout]  --> src/cli/commands/upload.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tracing::{error, info, trace};
[INFO] [stdout]   |                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env::set_var`
[INFO] [stdout]  --> src/cli/commands/server.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::env::set_var;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::PathBuf`
[INFO] [stdout]  --> src/cli/commands/server.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::PathBuf;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/cli/commands/server.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CLI_CONFIG`, `CONFIG_DIR`, `DATA_DIR`, and `PROGRAM_NAME`
[INFO] [stdout]  --> src/cli/commands/server.rs:8:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::config::{CLI_CONFIG, CONFIG_DIR, DATA_DIR, PROGRAM_NAME, SERVER_CONFIG};
[INFO] [stdout]   |                     ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]  --> src/server/controllers/model.rs:7:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | use sha2::{ Digest, Sha256};
[INFO] [stdout]   |             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StreamExt`
[INFO] [stdout]  --> src/server/controllers/model.rs:5:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | use futures::{Stream, StreamExt};
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Row`
[INFO] [stdout]  --> src/server/controllers/files.rs:6:102
[INFO] [stdout]   |
[INFO] [stdout] 6 | use sqlx::{postgres::{PgArguments, PgQueryResult, PgRow}, query::{Query}, FromRow, PgPool, Postgres, Row, Transaction};
[INFO] [stdout]   |                                                                                                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]  --> src/server/controllers/model.rs:7:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | use sha2::{ Digest, Sha256};
[INFO] [stdout]   |             ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StreamExt`
[INFO] [stdout]  --> src/server/controllers/model.rs:5:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | use futures::{Stream, StreamExt};
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Row`
[INFO] [stdout]  --> src/server/controllers/files.rs:6:102
[INFO] [stdout]   |
[INFO] [stdout] 6 | use sqlx::{postgres::{PgArguments, PgQueryResult, PgRow}, query::{Query}, FromRow, PgPool, Postgres, Row, Transaction};
[INFO] [stdout]   |                                                                                                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `upload_path`
[INFO] [stdout]  --> src/cli/api.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub async fn upload(upload_path: &Path) -> CliResult<String> {
[INFO] [stdout]   |                     ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_upload_path`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `uploaded_time`, `accessed_time`, `expiring_time`, and `file_size` are never read
[INFO] [stdout]   --> src/server/controllers/model.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct Media {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 19 |     pub id: i64,
[INFO] [stdout] 20 |     pub uploaded_time: NaiveDateTime,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 21 |     // TODO! Will be used to implement caching later.
[INFO] [stdout] 22 |     pub accessed_time: NaiveDateTime,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 23 |     // uhh.. TODO!
[INFO] [stdout] 24 |     pub expiring_time: Option<NaiveDateTime>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     // Size of the file in bytes.
[INFO] [stdout] 26 |     pub file_size: i64,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_root` is never used
[INFO] [stdout]    --> src/server/controllers/model.rs:186:12
[INFO] [stdout]     |
[INFO] [stdout] 118 | impl VirtualPath {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 186 |     pub fn is_root(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ServerConfig` is never constructed
[INFO] [stdout]    --> src/server/controllers/model.rs:263:12
[INFO] [stdout]     |
[INFO] [stdout] 263 | pub struct ServerConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `all_files` and `path_info` are never used
[INFO] [stdout]    --> src/server/controllers/files.rs:158:18
[INFO] [stdout]     |
[INFO] [stdout]  55 | impl FileControllerInner {
[INFO] [stdout]     | ------------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub async fn all_files(&self) -> ServerResult<Vec<SFile>> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 352 |     pub async fn path_info(
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NoAuthError`, `DatabaseConnectionError`, and `WrongPathType` are never constructed
[INFO] [stdout]   --> src/server/error.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum ServerError {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout]  9 |     NoAuthError,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 10 |     DatabaseConnectionError,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     WrongPathType { why: String },
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ServerError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `upload` is never used
[INFO] [stdout]  --> src/cli/api.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub async fn upload(upload_path: &Path) -> CliResult<String> {
[INFO] [stdout]   |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]  --> src/cli/error.rs:8:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     ServerError { err: server::error::ServerError },
[INFO] [stdout]   |     -----------   ^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]   --> src/cli/error.rs:10:15
[INFO] [stdout]    |
[INFO] [stdout] 10 |     IoError { err: String },
[INFO] [stdout]    |     -------   ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]   --> src/cli/error.rs:11:20
[INFO] [stdout]    |
[INFO] [stdout] 11 |     ReqwestError { err: reqwest::Error },
[INFO] [stdout]    |     ------------   ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `status_code` is never read
[INFO] [stdout]   --> src/cli/error.rs:12:22
[INFO] [stdout]    |
[INFO] [stdout] 12 |     FailStatusCode { status_code: StatusCode },
[INFO] [stdout]    |     --------------   ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `issue` is never read
[INFO] [stdout]   --> src/cli/error.rs:13:21
[INFO] [stdout]    |
[INFO] [stdout] 13 |     UrlParseError { issue: String },
[INFO] [stdout]    |     -------------   ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]   --> src/cli/error.rs:14:19
[INFO] [stdout]    |
[INFO] [stdout] 14 |     DockerError { err: bollard::errors::Error }
[INFO] [stdout]    |     -----------   ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `NoFileFound` is never constructed
[INFO] [stdout]  --> src/cli/error.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub enum CliError {
[INFO] [stdout]   |          -------- variant in this enum
[INFO] [stdout] 8 |     ServerError { err: server::error::ServerError },
[INFO] [stdout] 9 |     NoFileFound,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `upload_path`
[INFO] [stdout]  --> src/cli/api.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub async fn upload(upload_path: &Path) -> CliResult<String> {
[INFO] [stdout]   |                     ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_upload_path`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `uploaded_time`, `accessed_time`, `expiring_time`, and `file_size` are never read
[INFO] [stdout]   --> src/server/controllers/model.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct Media {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 19 |     pub id: i64,
[INFO] [stdout] 20 |     pub uploaded_time: NaiveDateTime,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 21 |     // TODO! Will be used to implement caching later.
[INFO] [stdout] 22 |     pub accessed_time: NaiveDateTime,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 23 |     // uhh.. TODO!
[INFO] [stdout] 24 |     pub expiring_time: Option<NaiveDateTime>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     // Size of the file in bytes.
[INFO] [stdout] 26 |     pub file_size: i64,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_root` is never used
[INFO] [stdout]    --> src/server/controllers/model.rs:186:12
[INFO] [stdout]     |
[INFO] [stdout] 118 | impl VirtualPath {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 186 |     pub fn is_root(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ServerConfig` is never constructed
[INFO] [stdout]    --> src/server/controllers/model.rs:263:12
[INFO] [stdout]     |
[INFO] [stdout] 263 | pub struct ServerConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `all_files` and `path_info` are never used
[INFO] [stdout]    --> src/server/controllers/files.rs:158:18
[INFO] [stdout]     |
[INFO] [stdout]  55 | impl FileControllerInner {
[INFO] [stdout]     | ------------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub async fn all_files(&self) -> ServerResult<Vec<SFile>> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 352 |     pub async fn path_info(
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NoAuthError`, `DatabaseConnectionError`, and `WrongPathType` are never constructed
[INFO] [stdout]   --> src/server/error.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum ServerError {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout]  9 |     NoAuthError,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 10 |     DatabaseConnectionError,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     WrongPathType { why: String },
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ServerError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `upload` is never used
[INFO] [stdout]  --> src/cli/api.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub async fn upload(upload_path: &Path) -> CliResult<String> {
[INFO] [stdout]   |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]  --> src/cli/error.rs:8:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     ServerError { err: server::error::ServerError },
[INFO] [stdout]   |     -----------   ^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]   --> src/cli/error.rs:10:15
[INFO] [stdout]    |
[INFO] [stdout] 10 |     IoError { err: String },
[INFO] [stdout]    |     -------   ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]   --> src/cli/error.rs:11:20
[INFO] [stdout]    |
[INFO] [stdout] 11 |     ReqwestError { err: reqwest::Error },
[INFO] [stdout]    |     ------------   ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `status_code` is never read
[INFO] [stdout]   --> src/cli/error.rs:12:22
[INFO] [stdout]    |
[INFO] [stdout] 12 |     FailStatusCode { status_code: StatusCode },
[INFO] [stdout]    |     --------------   ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `issue` is never read
[INFO] [stdout]   --> src/cli/error.rs:13:21
[INFO] [stdout]    |
[INFO] [stdout] 13 |     UrlParseError { issue: String },
[INFO] [stdout]    |     -------------   ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `err` is never read
[INFO] [stdout]   --> src/cli/error.rs:14:19
[INFO] [stdout]    |
[INFO] [stdout] 14 |     DockerError { err: bollard::errors::Error }
[INFO] [stdout]    |     -----------   ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `NoFileFound` is never constructed
[INFO] [stdout]  --> src/cli/error.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub enum CliError {
[INFO] [stdout]   |          -------- variant in this enum
[INFO] [stdout] 8 |     ServerError { err: server::error::ServerError },
[INFO] [stdout] 9 |     NoFileFound,
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s
[INFO] running `Command { std: "docker" "inspect" "05aa0635bfedf51a15aa01de357820f2ead83f14b578b1953e880325efdaaa49", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "05aa0635bfedf51a15aa01de357820f2ead83f14b578b1953e880325efdaaa49", kill_on_drop: false }`
[INFO] [stdout] 05aa0635bfedf51a15aa01de357820f2ead83f14b578b1953e880325efdaaa49
