[INFO] cloning repository https://github.com/naipofo/vintrackbot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/naipofo/vintrackbot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnaipofo%2Fvintrackbot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnaipofo%2Fvintrackbot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ede51b1b350f6ce773c84dc1c670cd21ffc684d8 [INFO] checking naipofo/vintrackbot against try#377afada703be70d3fdff9164a481570a3cba7fe for pr-113240 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnaipofo%2Fvintrackbot" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/naipofo/vintrackbot on toolchain 377afada703be70d3fdff9164a481570a3cba7fe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+377afada703be70d3fdff9164a481570a3cba7fe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/naipofo/vintrackbot [INFO] finished tweaking git repo https://github.com/naipofo/vintrackbot [INFO] tweaked toml for git repo https://github.com/naipofo/vintrackbot written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/naipofo/vintrackbot 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" "+377afada703be70d3fdff9164a481570a3cba7fe" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+377afada703be70d3fdff9164a481570a3cba7fe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b45b4474db4846f70993050361192bcfb5d16594fd785ce4d5a32b894a682e1d [INFO] running `Command { std: "docker" "start" "-a" "b45b4474db4846f70993050361192bcfb5d16594fd785ce4d5a32b894a682e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b45b4474db4846f70993050361192bcfb5d16594fd785ce4d5a32b894a682e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b45b4474db4846f70993050361192bcfb5d16594fd785ce4d5a32b894a682e1d", kill_on_drop: false }` [INFO] [stdout] b45b4474db4846f70993050361192bcfb5d16594fd785ce4d5a32b894a682e1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+377afada703be70d3fdff9164a481570a3cba7fe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 655a39e83b571dd6176a9fb59e122685c79fba2c830d585b5f4ade4c433c200d [INFO] running `Command { std: "docker" "start" "-a" "655a39e83b571dd6176a9fb59e122685c79fba2c830d585b5f4ade4c433c200d", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.142 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling serde v1.0.142 [INFO] [stderr] Compiling crossbeam-queue v0.3.6 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Compiling libsqlite3-sys v0.24.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling either v1.7.0 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling crc-catalog v2.1.0 [INFO] [stderr] Compiling paste v1.0.8 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling crc v3.0.0 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling dotenvy v0.15.1 [INFO] [stderr] Compiling hashlink v0.8.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling sqlformat v0.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling tokio-stream v0.1.9 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Checking thiserror v1.0.32 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking async-compression v0.3.14 [INFO] [stderr] Checking sqlx-rt v0.6.1 (https://github.com/launchbadge/sqlx.git#26f60d95) [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking sqlx-core v0.6.1 (https://github.com/launchbadge/sqlx.git#26f60d95) [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_qs v0.10.1 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Compiling sqlx-macros v0.6.1 (https://github.com/launchbadge/sqlx.git#26f60d95) [INFO] [stderr] Checking sqlx v0.6.1 (https://github.com/launchbadge/sqlx.git#26f60d95) [INFO] [stderr] Checking vintracker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `repo` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let repo = VinRepository::new(&secrets.api_root, &cookie, "pl"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_repo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut db = database::VinDatabase::new(DATABASE_URL).await; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut db = database::VinDatabase::new(DATABASE_URL).await; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/database.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct VinDatabase { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | pool: SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put_seen` and `is_seen` are never used [INFO] [stdout] --> src/database.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl VinDatabase { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub async fn put_seen(&mut self, user: &i64, id: &i64) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn is_seen(&mut self, user: &i64, id: &i64) -> Result<(bool,), sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_root_url` and `client` are never read [INFO] [stdout] --> src/vin.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct VinRepository { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | api_root_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 13 | client: reqwest::Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `search_by_query`, `get_item_by_id`, and `endpoint_request` are never used [INFO] [stdout] --> src/vin.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl VinRepository { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn search_by_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn get_item_by_id( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | async fn endpoint_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `items` and `pagination` are never read [INFO] [stdout] --> src/vin.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct VinPagedResponse { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 71 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 72 | pagination: PaginationData, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VinPagedResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_page`, `total_pages`, `total_entries`, `per_page`, and `time` are never read [INFO] [stdout] --> src/vin.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct PaginationData { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 77 | current_page: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 78 | total_pages: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 79 | total_entries: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 80 | per_page: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | time: i64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaginationData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/vin.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct VinItemResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 86 | item: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VinItemResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/vin.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct SearchResult { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 94 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 95 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | price: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 97 | currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 98 | brand_title: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 100 | total_item_price: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | size_title: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 102 | photo: Photo, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/vin.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct ItemDetails { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 107 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 108 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 110 | currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 111 | total_item_price: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | size_title: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 113 | photos: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `url`, and `full_size_url` are never read [INFO] [stdout] --> src/vin.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct Photo { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 118 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 119 | url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 120 | full_size_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Photo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repo` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let repo = VinRepository::new(&secrets.api_root, &cookie, "pl"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_repo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut db = database::VinDatabase::new(DATABASE_URL).await; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut db = database::VinDatabase::new(DATABASE_URL).await; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/database.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct VinDatabase { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | pool: SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `put_seen` and `is_seen` are never used [INFO] [stdout] --> src/database.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl VinDatabase { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub async fn put_seen(&mut self, user: &i64, id: &i64) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn is_seen(&mut self, user: &i64, id: &i64) -> Result<(bool,), sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_root_url` and `client` are never read [INFO] [stdout] --> src/vin.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct VinRepository { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | api_root_url: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 13 | client: reqwest::Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `search_by_query`, `get_item_by_id`, and `endpoint_request` are never used [INFO] [stdout] --> src/vin.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl VinRepository { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn search_by_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn get_item_by_id( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | async fn endpoint_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `items` and `pagination` are never read [INFO] [stdout] --> src/vin.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct VinPagedResponse { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 71 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 72 | pagination: PaginationData, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VinPagedResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_page`, `total_pages`, `total_entries`, `per_page`, and `time` are never read [INFO] [stdout] --> src/vin.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct PaginationData { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 77 | current_page: i64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 78 | total_pages: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 79 | total_entries: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 80 | per_page: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 81 | time: i64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaginationData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `item` is never read [INFO] [stdout] --> src/vin.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct VinItemResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 86 | item: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VinItemResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/vin.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct SearchResult { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 94 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 95 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | price: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 97 | currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 98 | brand_title: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 100 | total_item_price: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | size_title: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 102 | photo: Photo, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SearchResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/vin.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct ItemDetails { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 107 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 108 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 109 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 110 | currency: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 111 | total_item_price: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | size_title: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 113 | photos: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemDetails` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `url`, and `full_size_url` are never read [INFO] [stdout] --> src/vin.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct Photo { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 118 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 119 | url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 120 | full_size_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Photo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "655a39e83b571dd6176a9fb59e122685c79fba2c830d585b5f4ade4c433c200d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "655a39e83b571dd6176a9fb59e122685c79fba2c830d585b5f4ade4c433c200d", kill_on_drop: false }` [INFO] [stdout] 655a39e83b571dd6176a9fb59e122685c79fba2c830d585b5f4ade4c433c200d