[INFO] cloning repository https://github.com/benjamincottle/frame-admin-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benjamincottle/frame-admin-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamincottle%2Fframe-admin-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamincottle%2Fframe-admin-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa88b91dd9078a8d8e422178427653257c99120f [INFO] building benjamincottle/frame-admin-api against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamincottle%2Fframe-admin-api" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/benjamincottle/frame-admin-api [INFO] finished tweaking git repo https://github.com/benjamincottle/frame-admin-api [INFO] tweaked toml for git repo https://github.com/benjamincottle/frame-admin-api written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/benjamincottle/frame-admin-api on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/benjamincottle/frame-admin-api 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ascii v1.1.0 [INFO] [stderr] Downloaded postgres v0.19.7 [INFO] [stderr] Downloaded cc v1.0.104 [INFO] [stderr] Downloaded rgb v0.8.40 [INFO] [stderr] Downloaded env_logger v0.11.3 [INFO] [stderr] Downloaded bitstream-io v2.4.2 [INFO] [stderr] Downloaded uuid v1.9.1 [INFO] [stderr] Downloaded ignore v0.4.22 [INFO] [stderr] Downloaded ureq v2.9.7 [INFO] [stderr] Downloaded postgres-protocol v0.6.6 [INFO] [stderr] Downloaded ravif v0.11.7 [INFO] [stderr] Downloaded tokio-postgres v0.7.10 [INFO] [stderr] Downloaded webpki-roots v0.26.3 [INFO] [stderr] Downloaded postgres-types v0.2.6 [INFO] [stderr] Downloaded globset v0.4.14 [INFO] [stderr] Downloaded tiny_http v0.12.0 [INFO] [stderr] Downloaded chunked_transfer v1.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91b429235dfb6c03375499290595bf1e62b0eec40b38bd85f59303b2b31fb3e9 [INFO] running `Command { std: "docker" "start" "-a" "91b429235dfb6c03375499290595bf1e62b0eec40b38bd85f59303b2b31fb3e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91b429235dfb6c03375499290595bf1e62b0eec40b38bd85f59303b2b31fb3e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91b429235dfb6c03375499290595bf1e62b0eec40b38bd85f59303b2b31fb3e9", kill_on_drop: false }` [INFO] [stdout] 91b429235dfb6c03375499290595bf1e62b0eec40b38bd85f59303b2b31fb3e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60d5bdc278fa6d6c149fe151afadbaaf96669612b9ce9d9e5449d5e0f23070c3 [INFO] running `Command { std: "docker" "start" "-a" "60d5bdc278fa6d6c149fe151afadbaaf96669612b9ce9d9e5449d5e0f23070c3", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling cc v1.0.104 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling aligned-vec v0.5.0 [INFO] [stderr] Compiling built v0.7.3 [INFO] [stderr] Compiling unicode-properties v0.1.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling bstr v1.9.1 [INFO] [stderr] Compiling bytemuck v1.16.1 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling bitstream-io v2.4.2 [INFO] [stderr] Compiling postgres-protocol v0.6.6 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling imgref v1.10.1 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling uuid v1.9.1 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling postgres-types v0.2.6 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling rgb v0.8.40 [INFO] [stderr] Compiling avif-serialize v0.8.1 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling exr v1.72.0 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling zune-jpeg v0.4.11 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling webpki-roots v0.26.3 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling ascii v1.1.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling chunked_transfer v1.5.0 [INFO] [stderr] Compiling route-recognizer v0.3.1 [INFO] [stderr] Compiling tiny_http v0.12.0 [INFO] [stderr] Compiling globset v0.4.14 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling ignore v0.4.22 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling profiling v1.0.15 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling pest v2.7.10 [INFO] [stderr] Compiling image-webp v0.1.2 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling rustls-webpki v0.102.4 [INFO] [stderr] Compiling pest_meta v2.7.10 [INFO] [stderr] Compiling pest_generator v2.7.10 [INFO] [stderr] Compiling tokio-postgres v0.7.10 [INFO] [stderr] Compiling pest_derive v2.7.10 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling postgres v0.19.7 [INFO] [stderr] Compiling ureq v2.9.7 [INFO] [stderr] Compiling tera v1.20.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.0 [INFO] [stderr] Compiling ravif v0.11.7 [INFO] [stderr] Compiling image v0.25.1 [INFO] [stderr] Compiling admin_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ureq::Response` [INFO] [stdout] --> src/gphotos_api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ureq::Response; [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: `de` [INFO] [stdout] --> src/route_handler.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `MediaItem`, `Status`, `TASK_BOARD`, `TaskData`, `TaskQueue`, `Task`, `encode_image`, `get_album_list`, `get_mediaitems`, `get_photo`, and `refresh_token` [INFO] [stdout] --> src/route_handler.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | google_oauth::{refresh_token, request_token, revoke_token, AuthGuard, ValidUser}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | gphotos_api::{get_album_list, get_mediaitems, get_photo, MediaItem, PickingSession}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 8 | image_proc::{decode_image, encode_image}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | task_mgr::{Action, Status, Task, TaskData, TaskQueue, TASK_BOARD}, [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `SystemTime`, `UNIX_EPOCH`, `cmp::min`, `sync::Arc`, and `thread` [INFO] [stdout] --> src/route_handler.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | cmp::min, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | time::{SystemTime, UNIX_EPOCH}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `stdin` [INFO] [stdout] --> src/main.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | io::{stdin, BufRead}, [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `given_name`, and `family_name` are never read [INFO] [stdout] --> src/google_oauth.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct GoogleUserResult { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 26 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub given_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | pub family_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_token` is never used [INFO] [stdout] --> src/google_oauth.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn refresh_token(app_data: &AppState, user: &User) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:290:17 [INFO] [stdout] | [INFO] [stdout] 290 | KeyNotFound(String), [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 290 - KeyNotFound(String), [INFO] [stdout] 290 + KeyNotFound(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:291:16 [INFO] [stdout] | [INFO] [stdout] 291 | FetchError(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 291 - FetchError(String), [INFO] [stdout] 291 + FetchError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | ParseError(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 292 - ParseError(String), [INFO] [stdout] 292 + ParseError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:293:20 [INFO] [stdout] | [INFO] [stdout] 293 | CreateKeyError(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 293 - CreateKeyError(String), [INFO] [stdout] 293 + CreateKeyError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:300:17 [INFO] [stdout] | [INFO] [stdout] 300 | KeyProvider(GoogleKeyProviderError), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JWTParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 300 - KeyProvider(GoogleKeyProviderError), [INFO] [stdout] 300 + KeyProvider(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:301:16 [INFO] [stdout] | [INFO] [stdout] 301 | WrongToken(jsonwebtoken::errors::Error), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JWTParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 301 - WrongToken(jsonwebtoken::errors::Error), [INFO] [stdout] 301 + WrongToken(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhotoAlbum` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PhotoAlbum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MediaMetadata` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MediaMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MediaItem` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct MediaItem { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VideoProcessingStatus` is never used [INFO] [stdout] --> src/gphotos_api.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum VideoProcessingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mediaitems` is never used [INFO] [stdout] --> src/gphotos_api.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn get_mediaitems( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_photo` is never used [INFO] [stdout] --> src/gphotos_api.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_photo(media_item: &MediaItem) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_album_list` is never used [INFO] [stdout] --> src/gphotos_api.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn get_album_list(access_token: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_nearest` is never used [INFO] [stdout] --> src/image_proc.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn get_nearest(test_colour: (f32, f32, f32)) -> (u8, u8, u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/image_proc.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn add(colour: (f32, f32, f32), r: f32, g: f32, b: f32, k: f32) -> (f32, f32, f32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_image` is never used [INFO] [stdout] --> src/image_proc.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn encode_image(image: &DynamicImage) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_manage_old` is never used [INFO] [stdout] --> src/route_handler.rs:732:4 [INFO] [stdout] | [INFO] [stdout] 732 | fn handle_manage_old(request: Request, auth_guard: AuthGuard) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_album_data` is never used [INFO] [stdout] --> src/route_handler.rs:813:4 [INFO] [stdout] | [INFO] [stdout] 813 | fn handle_album_data(request: Request, auth_guard: AuthGuard) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_board`, `board_status`, `add_task`, `set_board_data`, `reset`, and `dump` are never used [INFO] [stdout] --> src/task_mgr.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl TASK_BOARD { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_board(&self) -> TaskBoard { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn board_status(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_task(&self, action: Action) -> TaskId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_board_data(&self, task_id: TaskId, status: Status) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn reset(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending`, `InProgress`, `Completed`, and `Failed` are never constructed [INFO] [stdout] --> src/task_mgr.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 103 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 104 | InProgress, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 105 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | Failed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add` and `Remove` are never constructed [INFO] [stdout] --> src/task_mgr.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum Action { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 111 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 112 | Remove, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TaskBoardStatus` is never constructed [INFO] [stdout] --> src/task_mgr.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct TaskBoardStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TaskData` is never used [INFO] [stdout] --> src/task_mgr.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum TaskData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/task_mgr.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TaskQueue` is never constructed [INFO] [stdout] --> src/task_mgr.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct TaskQueue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, and `is_empty` are never used [INFO] [stdout] --> src/task_mgr.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl TaskQueue { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 159 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn push(&self, task: Task) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn pop(&self) -> Task { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "60d5bdc278fa6d6c149fe151afadbaaf96669612b9ce9d9e5449d5e0f23070c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60d5bdc278fa6d6c149fe151afadbaaf96669612b9ce9d9e5449d5e0f23070c3", kill_on_drop: false }` [INFO] [stdout] 60d5bdc278fa6d6c149fe151afadbaaf96669612b9ce9d9e5449d5e0f23070c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29c4431cb474d450f9fca87b39b90bcc5b865eda38e3aced84153cfee03fd88e [INFO] running `Command { std: "docker" "start" "-a" "29c4431cb474d450f9fca87b39b90bcc5b865eda38e3aced84153cfee03fd88e", kill_on_drop: false }` [INFO] [stderr] Compiling admin_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ureq::Response` [INFO] [stdout] --> src/gphotos_api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ureq::Response; [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: `de` [INFO] [stdout] --> src/route_handler.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{de, Deserialize, Serialize}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `MediaItem`, `Status`, `TASK_BOARD`, `TaskData`, `TaskQueue`, `Task`, `encode_image`, `get_album_list`, `get_mediaitems`, `get_photo`, and `refresh_token` [INFO] [stdout] --> src/route_handler.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | google_oauth::{refresh_token, request_token, revoke_token, AuthGuard, ValidUser}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | gphotos_api::{get_album_list, get_mediaitems, get_photo, MediaItem, PickingSession}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 8 | image_proc::{decode_image, encode_image}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | task_mgr::{Action, Status, Task, TaskData, TaskQueue, TASK_BOARD}, [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^ ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `SystemTime`, `UNIX_EPOCH`, `cmp::min`, `sync::Arc`, and `thread` [INFO] [stdout] --> src/route_handler.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | cmp::min, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | time::{SystemTime, UNIX_EPOCH}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `stdin` [INFO] [stdout] --> src/main.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | io::{stdin, BufRead}, [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `given_name`, and `family_name` are never read [INFO] [stdout] --> src/google_oauth.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct GoogleUserResult { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 26 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub given_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | pub family_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_token` is never used [INFO] [stdout] --> src/google_oauth.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn refresh_token(app_data: &AppState, user: &User) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:290:17 [INFO] [stdout] | [INFO] [stdout] 290 | KeyNotFound(String), [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 290 - KeyNotFound(String), [INFO] [stdout] 290 + KeyNotFound(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:291:16 [INFO] [stdout] | [INFO] [stdout] 291 | FetchError(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 291 - FetchError(String), [INFO] [stdout] 291 + FetchError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | ParseError(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 292 - ParseError(String), [INFO] [stdout] 292 + ParseError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:293:20 [INFO] [stdout] | [INFO] [stdout] 293 | CreateKeyError(String), [INFO] [stdout] | -------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GoogleKeyProviderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 293 - CreateKeyError(String), [INFO] [stdout] 293 + CreateKeyError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:300:17 [INFO] [stdout] | [INFO] [stdout] 300 | KeyProvider(GoogleKeyProviderError), [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JWTParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 300 - KeyProvider(GoogleKeyProviderError), [INFO] [stdout] 300 + KeyProvider(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/google_oauth.rs:301:16 [INFO] [stdout] | [INFO] [stdout] 301 | WrongToken(jsonwebtoken::errors::Error), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JWTParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 301 - WrongToken(jsonwebtoken::errors::Error), [INFO] [stdout] 301 + WrongToken(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhotoAlbum` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PhotoAlbum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MediaMetadata` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MediaMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MediaItem` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct MediaItem { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VideoProcessingStatus` is never used [INFO] [stdout] --> src/gphotos_api.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum VideoProcessingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SearchResult` is never constructed [INFO] [stdout] --> src/gphotos_api.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct SearchResult { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mediaitems` is never used [INFO] [stdout] --> src/gphotos_api.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn get_mediaitems( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_photo` is never used [INFO] [stdout] --> src/gphotos_api.rs:242:8 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_photo(media_item: &MediaItem) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_album_list` is never used [INFO] [stdout] --> src/gphotos_api.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 279 | pub fn get_album_list(access_token: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_image` is never used [INFO] [stdout] --> src/image_proc.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn encode_image(image: &DynamicImage) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_manage_old` is never used [INFO] [stdout] --> src/route_handler.rs:732:4 [INFO] [stdout] | [INFO] [stdout] 732 | fn handle_manage_old(request: Request, auth_guard: AuthGuard) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_album_data` is never used [INFO] [stdout] --> src/route_handler.rs:813:4 [INFO] [stdout] | [INFO] [stdout] 813 | fn handle_album_data(request: Request, auth_guard: AuthGuard) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_board`, `board_status`, `add_task`, `set_board_data`, `reset`, and `dump` are never used [INFO] [stdout] --> src/task_mgr.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl TASK_BOARD { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_board(&self) -> TaskBoard { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn board_status(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn add_task(&self, action: Action) -> TaskId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_board_data(&self, task_id: TaskId, status: Status) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn reset(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending`, `InProgress`, `Completed`, and `Failed` are never constructed [INFO] [stdout] --> src/task_mgr.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 103 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 104 | InProgress, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 105 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | Failed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add` and `Remove` are never constructed [INFO] [stdout] --> src/task_mgr.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub enum Action { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 111 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 112 | Remove, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TaskBoardStatus` is never constructed [INFO] [stdout] --> src/task_mgr.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub struct TaskBoardStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TaskData` is never used [INFO] [stdout] --> src/task_mgr.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | pub enum TaskData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/task_mgr.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TaskQueue` is never constructed [INFO] [stdout] --> src/task_mgr.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct TaskQueue { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, and `is_empty` are never used [INFO] [stdout] --> src/task_mgr.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl TaskQueue { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 159 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn push(&self, task: Task) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn pop(&self) -> Task { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.11s [INFO] running `Command { std: "docker" "inspect" "29c4431cb474d450f9fca87b39b90bcc5b865eda38e3aced84153cfee03fd88e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29c4431cb474d450f9fca87b39b90bcc5b865eda38e3aced84153cfee03fd88e", kill_on_drop: false }` [INFO] [stdout] 29c4431cb474d450f9fca87b39b90bcc5b865eda38e3aced84153cfee03fd88e