[INFO] cloning repository https://github.com/utahrobotics/usr-discord-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/utahrobotics/usr-discord-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Futahrobotics%2Fusr-discord-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Futahrobotics%2Fusr-discord-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd11ecc501e818717d1b01284c785aa72c7773e3 [INFO] checking utahrobotics/usr-discord-bot against master#656ccbe796ff98def9b555c118e1620c5389e3b2 for pr-133502-24 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Futahrobotics%2Fusr-discord-bot" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/utahrobotics/usr-discord-bot [INFO] finished tweaking git repo https://github.com/utahrobotics/usr-discord-bot [INFO] tweaked toml for git repo https://github.com/utahrobotics/usr-discord-bot written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/utahrobotics/usr-discord-bot on toolchain 656ccbe796ff98def9b555c118e1620c5389e3b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/utahrobotics/usr-discord-bot 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" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serenity_poise_macros v0.6.2 [INFO] [stderr] Downloaded typesize v0.1.15 [INFO] [stderr] Downloaded camino v1.2.3 [INFO] [stderr] Downloaded trim-in-place v0.1.7 [INFO] [stderr] Downloaded poise v0.6.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899 [INFO] running `Command { std: "docker" "start" "23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899" "/opt/rustwide/cargo-home/bin/cargo" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899" "/opt/rustwide/cargo-home/bin/cargo" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.46 [INFO] [stderr] Checking smallvec v1.15.2 [INFO] [stderr] Checking bytes v1.12.0 [INFO] [stderr] Checking log v0.4.33 [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Checking zeroize v1.9.0 [INFO] [stderr] Checking typenum v1.20.1 [INFO] [stderr] Checking memchr v2.8.2 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking mio v1.2.1 [INFO] [stderr] Checking socket2 v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.150 [INFO] [stderr] Compiling autocfg v1.5.1 [INFO] [stderr] Checking hashbrown v0.17.1 [INFO] [stderr] Compiling aws-lc-rs v1.17.0 [INFO] [stderr] Checking rustls-pki-types v1.14.1 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling zerocopy v0.8.52 [INFO] [stderr] Compiling rustls v0.23.41 [INFO] [stderr] Compiling foldhash v0.2.0 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Checking webpki-roots v1.0.8 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling syn v2.0.118 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling crc-catalog v2.5.0 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Checking http v1.4.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling cc v1.2.65 [INFO] [stderr] Compiling hashlink v0.11.1 [INFO] [stderr] Checking hybrid-array v0.4.12 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking bitflags v2.13.0 [INFO] [stderr] Checking regex-syntax v0.8.11 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling flume v0.12.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking cmov v0.5.4 [INFO] [stderr] Checking block-buffer v0.12.1 [INFO] [stderr] Checking ctutils v0.4.2 [INFO] [stderr] Checking crypto-common v0.2.2 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking deranged v0.5.8 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling serenity v0.12.5 [INFO] [stderr] Checking time-core v0.1.9 [INFO] [stderr] Checking const-oid v0.10.2 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking num-conv v0.2.2 [INFO] [stderr] Checking rustls-native-certs v0.8.4 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking typemap_rev v0.3.0 [INFO] [stderr] Compiling anyhow v1.0.103 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking trim-in-place v0.1.7 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.41.0 [INFO] [stderr] Compiling libsqlite3-sys v0.37.0 [INFO] [stderr] Checking digest v0.11.3 [INFO] [stderr] Checking hmac v0.13.0 [INFO] [stderr] Checking sha2 v0.11.0 [INFO] [stderr] Checking time v0.3.51 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking regex v1.12.4 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.6 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tokio v1.52.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking zerofrom v0.1.8 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Checking yoke v0.8.3 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking zerovec v0.11.6 [INFO] [stderr] Checking zerotrie v0.2.4 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serenity_poise_macros v0.6.2 [INFO] [stderr] Checking tinystr v0.8.3 [INFO] [stderr] Checking potential_utf v0.1.5 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Checking icu_collections v2.2.0 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling either v1.16.0 [INFO] [stderr] Checking arrayvec v0.7.7 [INFO] [stderr] Checking chrono v0.4.45 [INFO] [stderr] Checking serde_cow v0.1.2 [INFO] [stderr] Checking secrecy v0.8.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking h2 v0.4.15 [INFO] [stderr] Checking tower-http v0.6.11 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking sqlx-core v0.9.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking sqlx-sqlite v0.9.0 [INFO] [stderr] Checking hyper v1.10.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking rustls-webpki v0.103.13 [INFO] [stderr] Compiling sqlx-macros-core v0.9.0 [INFO] [stderr] Checking axum v0.8.9 [INFO] [stderr] Compiling sqlx-macros v0.9.0 [INFO] [stderr] Checking sqlx v0.9.0 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.7.0 [INFO] [stderr] Checking hyper-rustls v0.27.9 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking reqwest v0.13.4 [INFO] [stderr] Checking poise v0.6.2 [INFO] [stderr] Checking usr-discord-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `CreateTaskRequest` and `UpdateTaskRequest` [INFO] [stdout] --> src/discord/commands.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vikunja::client::{CreateTaskRequest, UpdateTaskRequest}; [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 imports: `CreateTaskRequest` and `UpdateTaskRequest` [INFO] [stdout] --> src/discord/commands.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::vikunja::client::{CreateTaskRequest, UpdateTaskRequest}; [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 variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn ping(ctx: Context<'_>) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | ctx: Context<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> src/discord/commands.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 36 | #[description = "Task title"] title: String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/discord/commands.rs:37:45 [INFO] [stdout] | [INFO] [stdout] 37 | #[description = "Optional description"] description: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `due` [INFO] [stdout] --> src/discord/commands.rs:38:46 [INFO] [stdout] | [INFO] [stdout] 38 | #[description = "Due date (YYYY-MM-DD)"] due: Option, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_due` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | ctx: Context<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/discord/commands.rs:47:40 [INFO] [stdout] | [INFO] [stdout] 47 | #[description = "Vikunja task ID"] id: i64, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> src/discord/commands.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | #[description = "New title"] title: Option, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/discord/commands.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | #[description = "New description"] description: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `done` [INFO] [stdout] --> src/discord/commands.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | #[description = "Mark done?"] done: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 50 - #[description = "Mark done?"] done: Option, [INFO] [stdout] 50 + #[description = "Mark done?"] std::prelude::v1::None: Option, [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 50 | #[description = "Mark done?"] _done: Option, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `due` [INFO] [stdout] --> src/discord/commands.rs:51:46 [INFO] [stdout] | [INFO] [stdout] 51 | #[description = "Due date (YYYY-MM-DD)"] due: Option, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_due` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ctx: Context<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subproject_id` [INFO] [stdout] --> src/discord/commands.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 71 | #[description = "Vikunja subproject ID"] subproject_id: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subproject_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn on_task_created(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:7:52 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn on_task_created(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn on_task_updated(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:13:52 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn on_task_updated(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn on_task_deleted(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn on_task_deleted(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn on_task_comment(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:24:52 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn on_task_comment(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn on_task_assigned(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:30:53 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn on_task_assigned(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn ping(ctx: Context<'_>) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/vikunja/client.rs:96:54 [INFO] [stdout] | [INFO] [stdout] 96 | pub async fn create_task(&self, project_id: i64, req: CreateTaskRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/vikunja/client.rs:101:51 [INFO] [stdout] | [INFO] [stdout] 101 | pub async fn update_task(&self, task_id: i64, req: UpdateTaskRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/vikunja/client.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | req: CreateWebhookRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/vikunja/sync.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | config: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vikunja` [INFO] [stdout] --> src/vikunja/sync.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | vikunja: Arc, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vikunja` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `discord_http` [INFO] [stdout] --> src/vikunja/sync.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | discord_http: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_discord_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/vikunja/sync.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pool: SqlitePool, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/vikunja/sync.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vikunja` [INFO] [stdout] --> src/vikunja/sync.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | vikunja: &VikunjaClient, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vikunja` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `discord_http` [INFO] [stdout] --> src/vikunja/sync.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | discord_http: &serenity::http::Http, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_discord_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/vikunja/sync.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pool: &SqlitePool, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subproject` [INFO] [stdout] --> src/vikunja/sync.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | subproject: &crate::vikunja::client::Project, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subproject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secret` [INFO] [stdout] --> src/vikunja/webhook.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | fn verify_signature(secret: &str, headers: &HeaderMap, body: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/vikunja/webhook.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | fn verify_signature(secret: &str, headers: &HeaderMap, body: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/vikunja/webhook.rs:62:56 [INFO] [stdout] | [INFO] [stdout] 62 | fn verify_signature(secret: &str, headers: &HeaderMap, body: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | ctx: Context<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> src/discord/commands.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 36 | #[description = "Task title"] title: String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/discord/commands.rs:37:45 [INFO] [stdout] | [INFO] [stdout] 37 | #[description = "Optional description"] description: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `due` [INFO] [stdout] --> src/discord/commands.rs:38:46 [INFO] [stdout] | [INFO] [stdout] 38 | #[description = "Due date (YYYY-MM-DD)"] due: Option, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_due` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | ctx: Context<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/discord/commands.rs:47:40 [INFO] [stdout] | [INFO] [stdout] 47 | #[description = "Vikunja task ID"] id: i64, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> src/discord/commands.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | #[description = "New title"] title: Option, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `description` [INFO] [stdout] --> src/discord/commands.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | #[description = "New description"] description: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_description` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `done` [INFO] [stdout] --> src/discord/commands.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | #[description = "Mark done?"] done: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 50 - #[description = "Mark done?"] done: Option, [INFO] [stdout] 50 + #[description = "Mark done?"] std::prelude::v1::None: Option, [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 50 | #[description = "Mark done?"] _done: Option, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `due` [INFO] [stdout] --> src/discord/commands.rs:51:46 [INFO] [stdout] | [INFO] [stdout] 51 | #[description = "Due date (YYYY-MM-DD)"] due: Option, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_due` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bot_public_url`, `category_map`, and `admin_channel_id` are never read [INFO] [stdout] --> src/config.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub bot_public_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub category_map: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 42 | /// Optional Discord channel ID to post provisioning notices and errors to. [INFO] [stdout] 43 | pub admin_channel_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `forum_for_subproject` is never used [INFO] [stdout] --> src/db/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn forum_for_subproject(pool: &SqlitePool, subproject_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subproject_for_forum` is never used [INFO] [stdout] --> src/db/mod.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn subproject_for_forum(pool: &SqlitePool, channel_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upsert_subproject_forum` is never used [INFO] [stdout] --> src/db/mod.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn upsert_subproject_forum( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_provisioned_subproject_ids` is never used [INFO] [stdout] --> src/db/mod.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn all_provisioned_subproject_ids(pool: &SqlitePool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_for_task` is never used [INFO] [stdout] --> src/db/mod.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn thread_for_task(pool: &SqlitePool, task_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_task_thread` is never used [INFO] [stdout] --> src/db/mod.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn insert_task_thread( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config`, `pool`, and `vikunja` are never read [INFO] [stdout] --> src/discord/commands.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BotData { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub config: std::sync::Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | pub pool: sqlx::SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub vikunja: std::sync::Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http`, `base_url`, and `api_token` are never read [INFO] [stdout] --> src/vikunja/client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct VikunjaClient { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 8 | http: HttpClient, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | base_url: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | api_token: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VikunjaClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Project` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Project { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Webhook` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Webhook { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateTaskRequest` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct CreateTaskRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateTaskRequest` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct UpdateTaskRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateWebhookRequest` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct CreateWebhookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vikunja/client.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl VikunjaClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | fn auth_header(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn get_task(&self, task_id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn create_task(&self, project_id: i64, req: CreateTaskRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn update_task(&self, task_id: i64, req: UpdateTaskRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub async fn list_all_projects(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn list_project_webhooks(&self, project_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub async fn create_project_webhook( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TASK_EVENTS` is never used [INFO] [stdout] --> src/vikunja/sync.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const TASK_EVENTS: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `provision_subproject` is never used [INFO] [stdout] --> src/vikunja/sync.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn provision_subproject( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `discord_http` and `vikunja` are never read [INFO] [stdout] --> src/vikunja/webhook.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct WebhookState { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub discord_http: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | pub vikunja: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/discord/commands.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ctx: Context<'_>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subproject_id` [INFO] [stdout] --> src/discord/commands.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 71 | #[description = "Vikunja subproject ID"] subproject_id: i64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subproject_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn on_task_created(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:7:52 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn on_task_created(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn on_task_updated(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:13:52 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn on_task_updated(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn on_task_deleted(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:18:52 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn on_task_deleted(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn on_task_comment(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:24:52 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn on_task_comment(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/discord/notify.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn on_task_assigned(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/discord/notify.rs:30:53 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn on_task_assigned(event: &WebhookEvent, state: &WebhookState) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/vikunja/client.rs:96:54 [INFO] [stdout] | [INFO] [stdout] 96 | pub async fn create_task(&self, project_id: i64, req: CreateTaskRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/vikunja/client.rs:101:51 [INFO] [stdout] | [INFO] [stdout] 101 | pub async fn update_task(&self, task_id: i64, req: UpdateTaskRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/vikunja/client.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | req: CreateWebhookRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/vikunja/sync.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | config: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vikunja` [INFO] [stdout] --> src/vikunja/sync.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | vikunja: Arc, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vikunja` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `discord_http` [INFO] [stdout] --> src/vikunja/sync.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | discord_http: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_discord_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/vikunja/sync.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pool: SqlitePool, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/vikunja/sync.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vikunja` [INFO] [stdout] --> src/vikunja/sync.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | vikunja: &VikunjaClient, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vikunja` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `discord_http` [INFO] [stdout] --> src/vikunja/sync.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | discord_http: &serenity::http::Http, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_discord_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/vikunja/sync.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pool: &SqlitePool, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subproject` [INFO] [stdout] --> src/vikunja/sync.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | subproject: &crate::vikunja::client::Project, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subproject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secret` [INFO] [stdout] --> src/vikunja/webhook.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | fn verify_signature(secret: &str, headers: &HeaderMap, body: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers` [INFO] [stdout] --> src/vikunja/webhook.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | fn verify_signature(secret: &str, headers: &HeaderMap, body: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/vikunja/webhook.rs:62:56 [INFO] [stdout] | [INFO] [stdout] 62 | fn verify_signature(secret: &str, headers: &HeaderMap, body: &[u8]) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bot_public_url`, `category_map`, and `admin_channel_id` are never read [INFO] [stdout] --> src/config.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub bot_public_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub category_map: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 42 | /// Optional Discord channel ID to post provisioning notices and errors to. [INFO] [stdout] 43 | pub admin_channel_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `forum_for_subproject` is never used [INFO] [stdout] --> src/db/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn forum_for_subproject(pool: &SqlitePool, subproject_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subproject_for_forum` is never used [INFO] [stdout] --> src/db/mod.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn subproject_for_forum(pool: &SqlitePool, channel_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upsert_subproject_forum` is never used [INFO] [stdout] --> src/db/mod.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn upsert_subproject_forum( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_provisioned_subproject_ids` is never used [INFO] [stdout] --> src/db/mod.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn all_provisioned_subproject_ids(pool: &SqlitePool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thread_for_task` is never used [INFO] [stdout] --> src/db/mod.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn thread_for_task(pool: &SqlitePool, task_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_task_thread` is never used [INFO] [stdout] --> src/db/mod.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn insert_task_thread( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config`, `pool`, and `vikunja` are never read [INFO] [stdout] --> src/discord/commands.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BotData { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | pub config: std::sync::Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | pub pool: sqlx::SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub vikunja: std::sync::Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http`, `base_url`, and `api_token` are never read [INFO] [stdout] --> src/vikunja/client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct VikunjaClient { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 8 | http: HttpClient, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | base_url: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | api_token: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VikunjaClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Project` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Project { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Task` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Task { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Webhook` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Webhook { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateTaskRequest` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct CreateTaskRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateTaskRequest` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct UpdateTaskRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateWebhookRequest` is never constructed [INFO] [stdout] --> src/vikunja/client.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct CreateWebhookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vikunja/client.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl VikunjaClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | fn auth_header(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn get_task(&self, task_id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn create_task(&self, project_id: i64, req: CreateTaskRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn update_task(&self, task_id: i64, req: UpdateTaskRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub async fn list_all_projects(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn list_project_webhooks(&self, project_id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub async fn create_project_webhook( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TASK_EVENTS` is never used [INFO] [stdout] --> src/vikunja/sync.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const TASK_EVENTS: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `provision_subproject` is never used [INFO] [stdout] --> src/vikunja/sync.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn provision_subproject( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `discord_http` and `vikunja` are never read [INFO] [stdout] --> src/vikunja/webhook.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct WebhookState { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub discord_http: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | pub vikunja: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 31s [INFO] running `Command { std: "docker" "inspect" "23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899", kill_on_drop: false }` [INFO] [stdout] 23d6422064240b690aa5802b49c2b3e5d0c4ef68abe5724884d8abad5aceb899