[INFO] cloning repository https://github.com/DaftVadeR/daftplayer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DaftVadeR/daftplayer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDaftVadeR%2Fdaftplayer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDaftVadeR%2Fdaftplayer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dace5385b98e9e438de58c9010604345ec52c2bf [INFO] checking DaftVadeR/daftplayer against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDaftVadeR%2Fdaftplayer" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/DaftVadeR/daftplayer [INFO] finished tweaking git repo https://github.com/DaftVadeR/daftplayer [INFO] tweaked toml for git repo https://github.com/DaftVadeR/daftplayer written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DaftVadeR/daftplayer on toolchain a5689b034ad287112f709693384a37f1377eb9cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/DaftVadeR/daftplayer 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c [INFO] running `Command { std: "docker" "start" "e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c", 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" "e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c", 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" "e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling syn v2.0.109 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking rustls-pki-types v1.13.0 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling litrs v1.0.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling rustls v0.23.35 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.7 [INFO] [stderr] Compiling document-features v0.2.12 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking webpki-roots v1.0.4 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking socks v0.3.4 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Compiling instability v0.3.9 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking unicode-width v0.2.0 [INFO] [stderr] Checking rspotify-macros v0.15.3 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking directories v6.0.0 [INFO] [stderr] Checking unicode-truncate v1.1.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking rustls-webpki v0.103.8 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling maybe-async v0.2.10 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking ratatui v0.29.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking rspotify-model v0.15.3 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking cookie_store v0.21.1 [INFO] [stderr] Checking webbrowser v1.0.6 [INFO] [stderr] Checking ureq v2.12.1 [INFO] [stderr] Checking rspotify-http v0.15.3 [INFO] [stderr] Checking rspotify v0.15.3 [INFO] [stderr] Checking daftplayer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get_config_path` [INFO] [stdout] --> src/spotify_auth.rs:11:70 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::config::{ConfigPath, create_config_file, get_auth_config, get_config_path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | fn run(mut self, mut terminal: DefaultTerminal) -> Result<(), std::io::Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/main.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn render(self, area: Rect, buf: &mut Buffer) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header_area` [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | header_area, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_header_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instructions_area` [INFO] [stdout] --> src/main.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | instructions_area, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instructions_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `swap_legend_area` [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | swap_legend_area, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_swap_legend_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks_area` [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | blocks_area, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let layout = Layout::default() [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode` and `cfg` are never read [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 16 | mode: AppMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | cfg: ConfigApp, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Quit` is never constructed [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | enum AppMode { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_running` and `run` are never used [INFO] [stdout] --> src/main.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 33 | fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn run(mut self, mut terminal: DefaultTerminal) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `App` is never constructed [INFO] [stdout] --> src/config.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum ConfigPath { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 13 | Api, [INFO] [stdout] 14 | App, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `API_CONFIG_FILENAME` is never used [INFO] [stdout] --> src/spotify_auth.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const API_CONFIG_FILENAME: &'static str = "spotify_client.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `&str` [INFO] [stdout] --> src/config.rs:25:59 [INFO] [stdout] | [INFO] [stdout] 25 | match get_value_from_config_file::(API_CONFIG_FILENAME.into()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 25 - match get_value_from_config_file::(API_CONFIG_FILENAME.into()) { [INFO] [stdout] 25 + match get_value_from_config_file::(API_CONFIG_FILENAME) { [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 25 - match get_value_from_config_file::(API_CONFIG_FILENAME.into()) { [INFO] [stdout] 25 + match get_value_from_config_file::(<&str as Into<_>>::into(API_CONFIG_FILENAME)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:220:27 [INFO] [stdout] | [INFO] [stdout] 220 | access_token: config.token.clone().into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 220 - access_token: config.token.clone().into(), [INFO] [stdout] 220 + access_token: config.token.clone(), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 220 - access_token: config.token.clone().into(), [INFO] [stdout] 220 + access_token: >::into(config.token.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:223:33 [INFO] [stdout] | [INFO] [stdout] 223 | refresh_token: Some(config.refresh_token.clone().into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 223 - refresh_token: Some(config.refresh_token.clone().into()), [INFO] [stdout] 223 + refresh_token: Some(config.refresh_token.clone()), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 223 - refresh_token: Some(config.refresh_token.clone().into()), [INFO] [stdout] 223 + refresh_token: Some(>::into(config.refresh_token.clone())), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:232:20 [INFO] [stdout] | [INFO] [stdout] 232 | token: prev_token_new.access_token.clone().into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 232 - token: prev_token_new.access_token.clone().into(), [INFO] [stdout] 232 + token: prev_token_new.access_token.clone(), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 232 - token: prev_token_new.access_token.clone().into(), [INFO] [stdout] 232 + token: >::into(prev_token_new.access_token.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:234:28 [INFO] [stdout] | [INFO] [stdout] 234 | refresh_token: prev_token_new.refresh_token.unwrap().into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 234 - refresh_token: prev_token_new.refresh_token.unwrap().into(), [INFO] [stdout] 234 + refresh_token: prev_token_new.refresh_token.unwrap(), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 234 - refresh_token: prev_token_new.refresh_token.unwrap().into(), [INFO] [stdout] 234 + refresh_token: >::into(prev_token_new.refresh_token.unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `daftplayer` (bin "daftplayer" test) due to 5 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `get_config_path` [INFO] [stdout] --> src/spotify_auth.rs:11:70 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::config::{ConfigPath, create_config_file, get_auth_config, get_config_path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | fn run(mut self, mut terminal: DefaultTerminal) -> Result<(), std::io::Error> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/main.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn render(self, area: Rect, buf: &mut Buffer) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header_area` [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | header_area, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_header_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instructions_area` [INFO] [stdout] --> src/main.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | instructions_area, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instructions_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `swap_legend_area` [INFO] [stdout] --> src/main.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | swap_legend_area, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_swap_legend_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks_area` [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | blocks_area, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let layout = Layout::default() [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode` and `cfg` are never read [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 16 | mode: AppMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | cfg: ConfigApp, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Quit` is never constructed [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | enum AppMode { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_running` and `run` are never used [INFO] [stdout] --> src/main.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl App { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 33 | fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn run(mut self, mut terminal: DefaultTerminal) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `App` is never constructed [INFO] [stdout] --> src/config.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum ConfigPath { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 13 | Api, [INFO] [stdout] 14 | App, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `API_CONFIG_FILENAME` is never used [INFO] [stdout] --> src/spotify_auth.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const API_CONFIG_FILENAME: &'static str = "spotify_client.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `&str` [INFO] [stdout] --> src/config.rs:25:59 [INFO] [stdout] | [INFO] [stdout] 25 | match get_value_from_config_file::(API_CONFIG_FILENAME.into()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 25 - match get_value_from_config_file::(API_CONFIG_FILENAME.into()) { [INFO] [stdout] 25 + match get_value_from_config_file::(API_CONFIG_FILENAME) { [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 25 - match get_value_from_config_file::(API_CONFIG_FILENAME.into()) { [INFO] [stdout] 25 + match get_value_from_config_file::(<&str as Into<_>>::into(API_CONFIG_FILENAME)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:220:27 [INFO] [stdout] | [INFO] [stdout] 220 | access_token: config.token.clone().into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 220 - access_token: config.token.clone().into(), [INFO] [stdout] 220 + access_token: config.token.clone(), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 220 - access_token: config.token.clone().into(), [INFO] [stdout] 220 + access_token: >::into(config.token.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:223:33 [INFO] [stdout] | [INFO] [stdout] 223 | refresh_token: Some(config.refresh_token.clone().into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 223 - refresh_token: Some(config.refresh_token.clone().into()), [INFO] [stdout] 223 + refresh_token: Some(config.refresh_token.clone()), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 223 - refresh_token: Some(config.refresh_token.clone().into()), [INFO] [stdout] 223 + refresh_token: Some(>::into(config.refresh_token.clone())), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:232:20 [INFO] [stdout] | [INFO] [stdout] 232 | token: prev_token_new.access_token.clone().into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 232 - token: prev_token_new.access_token.clone().into(), [INFO] [stdout] 232 + token: prev_token_new.access_token.clone(), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 232 - token: prev_token_new.access_token.clone().into(), [INFO] [stdout] 232 + token: >::into(prev_token_new.access_token.clone()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/spotify_auth.rs:234:28 [INFO] [stdout] | [INFO] [stdout] 234 | refresh_token: prev_token_new.refresh_token.unwrap().into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 234 - refresh_token: prev_token_new.refresh_token.unwrap().into(), [INFO] [stdout] 234 + refresh_token: prev_token_new.refresh_token.unwrap(), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 234 - refresh_token: prev_token_new.refresh_token.unwrap().into(), [INFO] [stdout] 234 + refresh_token: >::into(prev_token_new.refresh_token.unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `daftplayer` (bin "daftplayer") due to 5 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c", kill_on_drop: false }` [INFO] [stdout] e080436157c7fbca4474c071a9a0e6079e6040853b116f7eebeb045ae2670f3c