[INFO] cloning repository https://github.com/7086cmd/server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/7086cmd/server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F7086cmd%2Fserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F7086cmd%2Fserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51714de95d90646cc17c4e2c5c9fda0861ffd342 [INFO] building 7086cmd/server against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F7086cmd%2Fserver" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/7086cmd/server [INFO] finished tweaking git repo https://github.com/7086cmd/server [INFO] tweaked toml for git repo https://github.com/7086cmd/server written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/7086cmd/server on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/7086cmd/server 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simple_logger v5.0.0 [INFO] [stderr] Downloaded whoami v1.6.1 [INFO] [stderr] Downloaded serde-big-array v0.5.1 [INFO] [stderr] Downloaded mongodb-internal-macros v3.2.4 [INFO] [stderr] Downloaded colored v2.2.0 [INFO] [stderr] Downloaded block-padding v0.1.5 [INFO] [stderr] Downloaded bitflags v2.9.2 [INFO] [stderr] Downloaded bcrypt v0.17.1 [INFO] [stderr] Downloaded derive-where v1.6.0 [INFO] [stderr] Downloaded oauth2 v5.0.0 [INFO] [stderr] Downloaded md-5 v0.8.0 [INFO] [stderr] Downloaded bson v2.15.0 [INFO] [stderr] Downloaded cc v1.2.33 [INFO] [stderr] Downloaded derive-syn-parse v0.2.0 [INFO] [stderr] Downloaded hickory-resolver v0.24.4 [INFO] [stderr] Downloaded macro_magic_core v0.5.1 [INFO] [stderr] Downloaded macro_magic v0.5.1 [INFO] [stderr] Downloaded byte-tools v0.3.1 [INFO] [stderr] Downloaded block-buffer v0.7.3 [INFO] [stderr] Downloaded opaque-debug v0.2.3 [INFO] [stderr] Downloaded gravatar v0.2.0 [INFO] [stderr] Downloaded macro_magic_core_macros v0.5.1 [INFO] [stderr] Downloaded macro_magic_macros v0.5.1 [INFO] [stderr] Downloaded hickory-proto v0.24.4 [INFO] [stderr] Downloaded mongodb v3.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d9058412e0e0ed20600335a491334638369d6a50c9f62709cff7decbf1b0ca1 [INFO] running `Command { std: "docker" "start" "-a" "7d9058412e0e0ed20600335a491334638369d6a50c9f62709cff7decbf1b0ca1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d9058412e0e0ed20600335a491334638369d6a50c9f62709cff7decbf1b0ca1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d9058412e0e0ed20600335a491334638369d6a50c9f62709cff7decbf1b0ca1", kill_on_drop: false }` [INFO] [stdout] 7d9058412e0e0ed20600335a491334638369d6a50c9f62709cff7decbf1b0ca1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1488c31445fa7f0028d8b3e81c513d6455a08fb91c44a1f8e87999307651925c [INFO] running `Command { std: "docker" "start" "-a" "1488c31445fa7f0028d8b3e81c513d6455a08fb91c44a1f8e87999307651925c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling cc v1.2.33 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling bitflags v2.9.2 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling gravatar v0.2.0 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling rsa v0.9.8 [INFO] [stderr] Compiling bcrypt v0.17.1 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling rustls-webpki v0.103.6 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling derive-where v1.6.0 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.4 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-rustls v0.26.3 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_with v3.14.0 [INFO] [stderr] Compiling serde-big-array v0.5.1 [INFO] [stderr] Compiling simple_logger v5.0.0 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling mongodb v3.2.4 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling oauth2 v5.0.0 [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/kernel/route/inner_area.rs:17:45 [INFO] [stdout] | [INFO] [stdout] 17 | use std::collections::{BinaryHeap, HashMap, HashSet}; [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: `User` [INFO] [stdout] --> src/kernel/unlocker.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema::{Beacon, Service, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Json` [INFO] [stdout] --> src/kernel/unlocker.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::Json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Extension, Router, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `p256::ecdsa` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use p256::ecdsa; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `p256::pkcs8::EncodePublicKey` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use p256::pkcs8::EncodePublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kernel/route/cross_area.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | let mut prioritized_areas = self.prioritize_connected_areas( [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_level` [INFO] [stdout] --> src/kernel/route/cross_area.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | let current_level = self.get_floor_level(current_floor); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/kernel/cryptography.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let payload = hex::decode(payload)?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/kernel/cryptography.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | hash: String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/kernel/cryptography.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | user_id: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database` [INFO] [stdout] --> src/kernel/cryptography.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | database: &Database, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beacon_id` [INFO] [stdout] --> src/kernel/route/inner_area.rs:341:29 [INFO] [stdout] | [INFO] [stdout] 341 | if let Some(beacon_id) = current_node.beacon_id { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beacon_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beacon_id` [INFO] [stdout] --> src/kernel/route/inner_area.rs:369:33 [INFO] [stdout] | [INFO] [stdout] 369 | if let Some(beacon_id) = current_node.beacon_id { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beacon_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from_area` [INFO] [stdout] --> src/kernel/route/cross_area.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | from_area: ObjectId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_area` [INFO] [stdout] --> src/kernel/route/cross_area.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | to_area: ObjectId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Authenticator` is never used [INFO] [stdout] --> src/kernel/auth/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Authenticator<'de, T: Sized + Clone + Debug + Serialize + Deserialize<'de>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/kernel/auth/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PasswordAuthenticator` is never constructed [INFO] [stdout] --> src/kernel/auth/password.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct PasswordAuthenticator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PasswordPayload` is never constructed [INFO] [stdout] --> src/kernel/auth/password.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PasswordPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_hash` is never used [INFO] [stdout] --> src/kernel/auth/password.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl PasswordPayload { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 25 | pub fn verify_hash(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticationInstance` is never constructed [INFO] [stdout] --> src/kernel/beacon.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AuthenticationInstance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthenticationStatus` is never used [INFO] [stdout] --> src/kernel/beacon.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum AuthenticationStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthenticationType` is never used [INFO] [stdout] --> src/kernel/beacon.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum AuthenticationType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FailedReason` is never used [INFO] [stdout] --> src/kernel/beacon.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum FailedReason { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticationHistory` is never constructed [INFO] [stdout] --> src/kernel/beacon.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct AuthenticationHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initiate_authentication` is never used [INFO] [stdout] --> src/kernel/beacon.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | async fn initiate_authentication( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserPasswordAuthenticationPayload` is never constructed [INFO] [stdout] --> src/kernel/cryptography.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct UserPasswordAuthenticationPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CryptoServer` is never constructed [INFO] [stdout] --> src/kernel/cryptography.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct CryptoServer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnlockRequest` is never constructed [INFO] [stdout] --> src/kernel/cryptography.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UnlockRequest { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `password_jwt_sign`, and `handle_unlocker` are never used [INFO] [stdout] --> src/kernel/cryptography.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl CryptoServer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 37 | pub fn new(private_key: SigningKey, public_key: PublicKey) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn password_jwt_sign( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn handle_unlocker(&self, request: UnlockRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/kernel/instruction.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/kernel/instruction.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/kernel/instruction.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Instruction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(instruction_type: InstructionType, description: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphNode` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct GraphNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NodeType` is never used [INFO] [stdout] --> src/kernel/route/inner_area.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum NodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphEdge` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct GraphEdge { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EdgeType` is never used [INFO] [stdout] --> src/kernel/route/inner_area.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum EdgeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DijkstraState` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct DijkstraState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InnerAreaRouter` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct InnerAreaRouter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/kernel/route/inner_area.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl InnerAreaRouter { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 86 | /// Create a new inner area router [INFO] [stdout] 87 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn build_graph(&mut self, area: &Area, beacons: &[Beacon]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn add_polygon_vertices(&mut self, area: &Area) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn add_beacon_nodes(&mut self, beacons: &[Beacon]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn create_edges(&mut self, area: &Area) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn add_edge(&mut self, from: usize, to: usize, edge_type: EdgeType) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn calculate_edge_weight(&self, distance: f64, edge_type: &EdgeType) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn find_nearest_vertices(&self, position: (f64, f64), count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | fn create_direct_connections(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn has_edge(&self, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn build_adjacency_list(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn calculate_distance(&self, p1: (f64, f64), p2: (f64, f64)) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn find_route(&self, start_beacon_id: ObjectId, end_beacon_id: ObjectId) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | fn find_beacon_node(&self, beacon_id: ObjectId) -> Option<&GraphNode> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn dijkstra(&self, start: usize, end: usize) -> Result, String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | fn find_edge(&self, from: usize, to: usize) -> Option<&GraphEdge> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | fn generate_instructions(&self, path: Vec) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | fn calculate_turn_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TurnTo` is never used [INFO] [stdout] --> src/kernel/route/instructions.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TurnTo { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RouteInstruction` is never used [INFO] [stdout] --> src/kernel/route/instructions.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum RouteInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RouteSegment` is never constructed [INFO] [stdout] --> src/kernel/route/cross_area.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct RouteSegment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrossAreaRouter` is never constructed [INFO] [stdout] --> src/kernel/route/cross_area.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct CrossAreaRouter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/kernel/route/cross_area.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl CrossAreaRouter { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 41 | /// Create a new cross area router [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn initialize(&mut self, areas: Vec, connections: Vec) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn find_cross_area_route( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | async fn find_area_path(&self, start: ObjectId, end: ObjectId, db: &Database) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | async fn prioritize_connected_areas( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | fn floors_match(&self, floor1: Option<&Floor>, floor2: Option<&Floor>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn get_floor_level(&self, floor: &Floor) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | fn build_route_segments(&self, path: Vec) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | fn find_optimal_connection(&self, from_area: ObjectId, to_area: ObjectId) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn select_optimal_transportation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn is_basement_parking(&self, floor: Option<&Floor>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | fn get_connection_priority(&self, connection_type: &ConnectionType) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 401 | fn generate_connection_instructions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | pub fn get_areas(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 449 | pub fn get_connections(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn are_areas_connected(&self, area1: ObjectId, area2: ObjectId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 463 | pub fn get_reachable_areas(&self, from_area: ObjectId) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BeaconSecret` is never constructed [INFO] [stdout] --> src/kernel/totp.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) struct BeaconSecret { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate_totp`, and `generate_with_counter` are never used [INFO] [stdout] --> src/kernel/totp.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 40 | impl BeaconSecret { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 41 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub(crate) fn generate_totp(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn generate_with_counter(&self, counter: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_object_id`, `get_floor`, and `get_polygon` are never used [INFO] [stdout] --> src/schema/area.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Area { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 20 | pub fn get_object_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn get_floor(&self) -> Option<&Floor> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_polygon(&self) -> &Vec<(f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Authentication` is never constructed [INFO] [stdout] --> src/schema/authentication.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Authentication {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_location` and `get_object_id` are never used [INFO] [stdout] --> src/schema/beacon.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Beacon { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 38 | pub fn get_location(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_object_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_object_id`, `get_connected_areas`, and `get_connection_type` are never used [INFO] [stdout] --> src/schema/connection.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Connection { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 30 | pub fn get_object_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_connected_areas(&self) -> &Vec<(ObjectId, f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get_connection_type(&self) -> &ConnectionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineTo` is never constructed [INFO] [stdout] --> src/schema/polygon/line.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LineTo { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LineArc` is never constructed [INFO] [stdout] --> src/schema/polygon/line.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct LineArc { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Line` is never used [INFO] [stdout] --> src/schema/polygon/line.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Path` is never constructed [INFO] [stdout] --> src/schema/polygon/line.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Path { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/schema/user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `verify_password`, and `is_privileged` are never used [INFO] [stdout] --> src/schema/user.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 21 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn verify_password(&self, password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_privileged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaginationResult` is never constructed [INFO] [stdout] --> src/shared.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PaginationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 35s [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 2` [INFO] running `Command { std: "docker" "inspect" "1488c31445fa7f0028d8b3e81c513d6455a08fb91c44a1f8e87999307651925c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1488c31445fa7f0028d8b3e81c513d6455a08fb91c44a1f8e87999307651925c", kill_on_drop: false }` [INFO] [stdout] 1488c31445fa7f0028d8b3e81c513d6455a08fb91c44a1f8e87999307651925c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1099f63a76bed015d052ad178ac3795b4fb10bb61ed69afc8f1c7c08a6f23c3 [INFO] running `Command { std: "docker" "start" "-a" "d1099f63a76bed015d052ad178ac3795b4fb10bb61ed69afc8f1c7c08a6f23c3", kill_on_drop: false }` [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/kernel/route/inner_area.rs:17:45 [INFO] [stdout] | [INFO] [stdout] 17 | use std::collections::{BinaryHeap, HashMap, HashSet}; [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: `User` [INFO] [stdout] --> src/kernel/unlocker.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema::{Beacon, Service, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Json` [INFO] [stdout] --> src/kernel/unlocker.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::Json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Extension, Router, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `p256::ecdsa` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use p256::ecdsa; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `p256::pkcs8::EncodePublicKey` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use p256::pkcs8::EncodePublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kernel/route/cross_area.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | let mut prioritized_areas = self.prioritize_connected_areas( [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_level` [INFO] [stdout] --> src/kernel/route/cross_area.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | let current_level = self.get_floor_level(current_floor); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/kernel/cryptography.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let payload = hex::decode(payload)?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/kernel/cryptography.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | hash: String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id` [INFO] [stdout] --> src/kernel/cryptography.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | user_id: &str, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `database` [INFO] [stdout] --> src/kernel/cryptography.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | database: &Database, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beacon_id` [INFO] [stdout] --> src/kernel/route/inner_area.rs:341:29 [INFO] [stdout] | [INFO] [stdout] 341 | if let Some(beacon_id) = current_node.beacon_id { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beacon_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beacon_id` [INFO] [stdout] --> src/kernel/route/inner_area.rs:369:33 [INFO] [stdout] | [INFO] [stdout] 369 | if let Some(beacon_id) = current_node.beacon_id { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beacon_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from_area` [INFO] [stdout] --> src/kernel/route/cross_area.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | from_area: ObjectId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_area` [INFO] [stdout] --> src/kernel/route/cross_area.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | to_area: ObjectId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Authenticator` is never used [INFO] [stdout] --> src/kernel/auth/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Authenticator<'de, T: Sized + Clone + Debug + Serialize + Deserialize<'de>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/kernel/auth/mod.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PasswordAuthenticator` is never constructed [INFO] [stdout] --> src/kernel/auth/password.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct PasswordAuthenticator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PasswordPayload` is never constructed [INFO] [stdout] --> src/kernel/auth/password.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PasswordPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_hash` is never used [INFO] [stdout] --> src/kernel/auth/password.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl PasswordPayload { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 25 | pub fn verify_hash(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticationInstance` is never constructed [INFO] [stdout] --> src/kernel/beacon.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct AuthenticationInstance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthenticationStatus` is never used [INFO] [stdout] --> src/kernel/beacon.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum AuthenticationStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AuthenticationType` is never used [INFO] [stdout] --> src/kernel/beacon.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum AuthenticationType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FailedReason` is never used [INFO] [stdout] --> src/kernel/beacon.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum FailedReason { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticationHistory` is never constructed [INFO] [stdout] --> src/kernel/beacon.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct AuthenticationHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initiate_authentication` is never used [INFO] [stdout] --> src/kernel/beacon.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | async fn initiate_authentication( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserPasswordAuthenticationPayload` is never constructed [INFO] [stdout] --> src/kernel/cryptography.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct UserPasswordAuthenticationPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CryptoServer` is never constructed [INFO] [stdout] --> src/kernel/cryptography.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct CryptoServer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnlockRequest` is never constructed [INFO] [stdout] --> src/kernel/cryptography.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct UnlockRequest { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `password_jwt_sign`, and `handle_unlocker` are never used [INFO] [stdout] --> src/kernel/cryptography.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl CryptoServer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 37 | pub fn new(private_key: SigningKey, public_key: PublicKey) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn password_jwt_sign( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn handle_unlocker(&self, request: UnlockRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/kernel/instruction.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/kernel/instruction.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/kernel/instruction.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Instruction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(instruction_type: InstructionType, description: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphNode` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct GraphNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NodeType` is never used [INFO] [stdout] --> src/kernel/route/inner_area.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum NodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GraphEdge` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct GraphEdge { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EdgeType` is never used [INFO] [stdout] --> src/kernel/route/inner_area.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum EdgeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DijkstraState` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct DijkstraState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InnerAreaRouter` is never constructed [INFO] [stdout] --> src/kernel/route/inner_area.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct InnerAreaRouter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/kernel/route/inner_area.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl InnerAreaRouter { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 86 | /// Create a new inner area router [INFO] [stdout] 87 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn build_graph(&mut self, area: &Area, beacons: &[Beacon]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn add_polygon_vertices(&mut self, area: &Area) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn add_beacon_nodes(&mut self, beacons: &[Beacon]) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn create_edges(&mut self, area: &Area) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn add_edge(&mut self, from: usize, to: usize, edge_type: EdgeType) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn calculate_edge_weight(&self, distance: f64, edge_type: &EdgeType) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn find_nearest_vertices(&self, position: (f64, f64), count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | fn create_direct_connections(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn has_edge(&self, from: usize, to: usize) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn build_adjacency_list(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn calculate_distance(&self, p1: (f64, f64), p2: (f64, f64)) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn find_route(&self, start_beacon_id: ObjectId, end_beacon_id: ObjectId) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | fn find_beacon_node(&self, beacon_id: ObjectId) -> Option<&GraphNode> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn dijkstra(&self, start: usize, end: usize) -> Result, String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 328 | fn find_edge(&self, from: usize, to: usize) -> Option<&GraphEdge> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | fn generate_instructions(&self, path: Vec) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | fn calculate_turn_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TurnTo` is never used [INFO] [stdout] --> src/kernel/route/instructions.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TurnTo { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RouteInstruction` is never used [INFO] [stdout] --> src/kernel/route/instructions.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum RouteInstruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RouteSegment` is never constructed [INFO] [stdout] --> src/kernel/route/cross_area.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct RouteSegment { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrossAreaRouter` is never constructed [INFO] [stdout] --> src/kernel/route/cross_area.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct CrossAreaRouter { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/kernel/route/cross_area.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl CrossAreaRouter { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 41 | /// Create a new cross area router [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn initialize(&mut self, areas: Vec, connections: Vec) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn find_cross_area_route( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | async fn find_area_path(&self, start: ObjectId, end: ObjectId, db: &Database) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | async fn prioritize_connected_areas( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | fn floors_match(&self, floor1: Option<&Floor>, floor2: Option<&Floor>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn get_floor_level(&self, floor: &Floor) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | fn build_route_segments(&self, path: Vec) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | fn find_optimal_connection(&self, from_area: ObjectId, to_area: ObjectId) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn select_optimal_transportation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn is_basement_parking(&self, floor: Option<&Floor>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | fn get_connection_priority(&self, connection_type: &ConnectionType) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 401 | fn generate_connection_instructions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | pub fn get_areas(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 449 | pub fn get_connections(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn are_areas_connected(&self, area1: ObjectId, area2: ObjectId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 463 | pub fn get_reachable_areas(&self, from_area: ObjectId) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_object_id`, `get_floor`, and `get_polygon` are never used [INFO] [stdout] --> src/schema/area.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Area { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 20 | pub fn get_object_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn get_floor(&self) -> Option<&Floor> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_polygon(&self) -> &Vec<(f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Authentication` is never constructed [INFO] [stdout] --> src/schema/authentication.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Authentication {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_location` and `get_object_id` are never used [INFO] [stdout] --> src/schema/beacon.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Beacon { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 38 | pub fn get_location(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_object_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_object_id`, `get_connected_areas`, and `get_connection_type` are never used [INFO] [stdout] --> src/schema/connection.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Connection { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 30 | pub fn get_object_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_connected_areas(&self) -> &Vec<(ObjectId, f64, f64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get_connection_type(&self) -> &ConnectionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/schema/user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `verify_password`, and `is_privileged` are never used [INFO] [stdout] --> src/schema/user.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 21 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn verify_password(&self, password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_privileged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaginationResult` is never constructed [INFO] [stdout] --> src/shared.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PaginationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.25s [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 2` [INFO] running `Command { std: "docker" "inspect" "d1099f63a76bed015d052ad178ac3795b4fb10bb61ed69afc8f1c7c08a6f23c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1099f63a76bed015d052ad178ac3795b4fb10bb61ed69afc8f1c7c08a6f23c3", kill_on_drop: false }` [INFO] [stdout] d1099f63a76bed015d052ad178ac3795b4fb10bb61ed69afc8f1c7c08a6f23c3