[INFO] cloning repository https://github.com/wuliao97/spotify-client-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wuliao97/spotify-client-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwuliao97%2Fspotify-client-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwuliao97%2Fspotify-client-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce72f3fc8340650276a785517c3a8692452a0086 [INFO] testing wuliao97/spotify-client-rs against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwuliao97%2Fspotify-client-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wuliao97/spotify-client-rs [INFO] finished tweaking git repo https://github.com/wuliao97/spotify-client-rs [INFO] tweaked toml for git repo https://github.com/wuliao97/spotify-client-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wuliao97/spotify-client-rs on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wuliao97/spotify-client-rs 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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 652850f57e1f38238386de9df2413e50d3d57029c1c73b61e51d7c1a07502ac7 [INFO] running `Command { std: "docker" "start" "-a" "652850f57e1f38238386de9df2413e50d3d57029c1c73b61e51d7c1a07502ac7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "652850f57e1f38238386de9df2413e50d3d57029c1c73b61e51d7c1a07502ac7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "652850f57e1f38238386de9df2413e50d3d57029c1c73b61e51d7c1a07502ac7", kill_on_drop: false }` [INFO] [stdout] 652850f57e1f38238386de9df2413e50d3d57029c1c73b61e51d7c1a07502ac7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7068f22b0f950d7cbda1b95e300c9861c91310451420865df193c50c61a423bf [INFO] running `Command { std: "docker" "start" "-a" "7068f22b0f950d7cbda1b95e300c9861c91310451420865df193c50c61a423bf", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling miniz_oxide v0.7.3 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling syn v2.0.65 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling thread-id v4.2.1 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling priority-queue v1.4.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling vergen v3.2.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling pbkdf2 v0.8.0 [INFO] [stderr] Compiling shannon v0.2.0 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling num-bigint v0.4.5 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling librespot-core v0.4.2 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling aes-ctr v0.6.0 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling if-addrs v0.7.0 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling winnow v0.6.8 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling parking_lot v0.12.2 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling protobuf-codegen v2.28.0 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling anstyle-query v1.0.3 [INFO] [stderr] Compiling shell-words v1.1.0 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling protobuf-codegen-pure v2.28.0 [INFO] [stderr] Compiling rspotify-macros v0.13.1 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling ttl_cache v0.5.1 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling strum_macros v0.26.2 [INFO] [stderr] Compiling zerocopy-derive v0.6.6 [INFO] [stderr] Compiling maybe-async v0.2.10 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling config_parser_derive v0.1.3 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling zerocopy v0.6.6 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling librespot-protocol v0.4.2 [INFO] [stderr] Compiling strum v0.26.2 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-socks v0.5.1 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.6 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling serde_spanned v0.6.6 [INFO] [stderr] Compiling libmdns v0.7.5 [INFO] [stderr] Compiling toml_edit v0.22.13 [INFO] [stderr] Compiling rspotify-model v0.13.1 [INFO] [stderr] Compiling toml v0.8.13 [INFO] [stderr] Compiling config_parser2 v0.1.5 [INFO] [stderr] Compiling hyper-proxy v0.9.1 [INFO] [stderr] Compiling librespot-metadata v0.4.2 [INFO] [stderr] Compiling librespot-audio v0.4.2 [INFO] [stderr] Compiling librespot-discovery v0.4.2 [INFO] [stderr] Compiling hyper v1.3.1 [INFO] [stderr] Compiling librespot-playback v0.4.2 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling librespot-connect v0.4.2 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.4 [INFO] [stderr] Compiling rspotify-http v0.13.1 [INFO] [stderr] Compiling rspotify v0.13.1 [INFO] [stderr] Compiling spotify-client-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::constant::*` [INFO] [stdout] --> src/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::constant::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/config.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/config.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/auth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/auth.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::var` [INFO] [stdout] --> src/auth.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dotenvy::var; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SessionError` [INFO] [stdout] --> src/auth.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | session::{Session, SessionError}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config` [INFO] [stdout] --> src/auth.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::config; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reauth` [INFO] [stdout] --> src/auth.rs:140:52 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn new_session(auth_config: &AuthConfig, reauth: bool) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reauth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_uri` is never used [INFO] [stdout] --> src/utils.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_TOP_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub static USER_TOP_TRACKS_ID: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_RECENTLY_PLAYED_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub static USER_RECENTLY_PLAYED_TRACKS_ID: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_LIKED_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static USER_LIKED_TRACKS_ID: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CONFIG_FOLDER` is never used [INFO] [stdout] --> src/constant.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const DEFAULT_CONFIG_FOLDER: &str = ".config/spotify-player"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CACHE_FOLDER` is never used [INFO] [stdout] --> src/constant.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const DEFAULT_CACHE_FOLDER: &str = ".cache/spotify-player"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APP_CONFIG_FILE` is never used [INFO] [stdout] --> src/constant.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const APP_CONFIG_FILE: &str = "app.toml"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TracksId` is never constructed [INFO] [stdout] --> src/model.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TracksId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContextId` is never used [INFO] [stdout] --> src/model.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ContextId { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Playback` is never used [INFO] [stdout] --> src/model.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum Playback { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TrackOrder` is never used [INFO] [stdout] --> src/model.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum TrackOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Item` is never used [INFO] [stdout] --> src/model.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ItemId` is never used [INFO] [stdout] --> src/model.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum ItemId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaybackMetadata` is never constructed [INFO] [stdout] --> src/model.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct PlaybackMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Device` is never constructed [INFO] [stdout] --> src/model.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct Device { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uri` is never used [INFO] [stdout] --> src/model.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl ContextId { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 198 | pub fn uri(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compare` is never used [INFO] [stdout] --> src/model.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 208 | impl TrackOrder { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 209 | pub fn compare(&self, x: &Track, y: &Track) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_device` is never used [INFO] [stdout] --> src/model.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 220 | impl Device { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 221 | /// tries to convert from a `rspotify_model::Device` into `Device` [INFO] [stdout] 222 | pub fn try_from_device(device: rspotify_model::Device) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model.rs:446:12 [INFO] [stdout] | [INFO] [stdout] 445 | impl TracksId { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 446 | pub fn new(uri: U, kind: K) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uri_offset` is never used [INFO] [stdout] --> src/model.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 458 | impl Playback { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 459 | /// creates new playback with a specified offset based on the current playback [INFO] [stdout] 460 | pub fn uri_offset(&self, uri: String, limit: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_playback` is never used [INFO] [stdout] --> src/model.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 488 | impl PlaybackMetadata { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 489 | pub fn from_playback(p: &CurrentPlaybackContext) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reorder_playlist_items` and `create_new_playlist` are never used [INFO] [stdout] --> src/client/mod.rs:396:14 [INFO] [stdout] | [INFO] [stdout] 38 | impl Client { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | async fn reorder_playlist_items( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 599 | async fn create_new_playlist( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/utils.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stdout] | ^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/client/mod.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn username(&self) -> UserId { [INFO] [stdout] | ^^^^^ ------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | pub fn username(&self) -> UserId<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 24s [INFO] running `Command { std: "docker" "inspect" "7068f22b0f950d7cbda1b95e300c9861c91310451420865df193c50c61a423bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7068f22b0f950d7cbda1b95e300c9861c91310451420865df193c50c61a423bf", kill_on_drop: false }` [INFO] [stdout] 7068f22b0f950d7cbda1b95e300c9861c91310451420865df193c50c61a423bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5856272d50b1f164710c65552b692b599d2957662298a8dae30ab015c11769db [INFO] running `Command { std: "docker" "start" "-a" "5856272d50b1f164710c65552b692b599d2957662298a8dae30ab015c11769db", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `crate::constant::*` [INFO] [stdout] --> src/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::constant::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/config.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/config.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/auth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/auth.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::var` [INFO] [stdout] --> src/auth.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dotenvy::var; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SessionError` [INFO] [stdout] --> src/auth.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | session::{Session, SessionError}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config` [INFO] [stdout] --> src/auth.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::config; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reauth` [INFO] [stdout] --> src/auth.rs:140:52 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn new_session(auth_config: &AuthConfig, reauth: bool) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reauth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_uri` is never used [INFO] [stdout] --> src/utils.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_TOP_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub static USER_TOP_TRACKS_ID: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_RECENTLY_PLAYED_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub static USER_RECENTLY_PLAYED_TRACKS_ID: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_LIKED_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static USER_LIKED_TRACKS_ID: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CONFIG_FOLDER` is never used [INFO] [stdout] --> src/constant.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const DEFAULT_CONFIG_FOLDER: &str = ".config/spotify-player"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CACHE_FOLDER` is never used [INFO] [stdout] --> src/constant.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const DEFAULT_CACHE_FOLDER: &str = ".cache/spotify-player"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APP_CONFIG_FILE` is never used [INFO] [stdout] --> src/constant.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const APP_CONFIG_FILE: &str = "app.toml"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TracksId` is never constructed [INFO] [stdout] --> src/model.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TracksId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContextId` is never used [INFO] [stdout] --> src/model.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ContextId { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Playback` is never used [INFO] [stdout] --> src/model.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum Playback { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TrackOrder` is never used [INFO] [stdout] --> src/model.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum TrackOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Item` is never used [INFO] [stdout] --> src/model.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ItemId` is never used [INFO] [stdout] --> src/model.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum ItemId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaybackMetadata` is never constructed [INFO] [stdout] --> src/model.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct PlaybackMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Device` is never constructed [INFO] [stdout] --> src/model.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct Device { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uri` is never used [INFO] [stdout] --> src/model.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl ContextId { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 198 | pub fn uri(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compare` is never used [INFO] [stdout] --> src/model.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 208 | impl TrackOrder { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 209 | pub fn compare(&self, x: &Track, y: &Track) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_device` is never used [INFO] [stdout] --> src/model.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 220 | impl Device { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 221 | /// tries to convert from a `rspotify_model::Device` into `Device` [INFO] [stdout] 222 | pub fn try_from_device(device: rspotify_model::Device) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model.rs:446:12 [INFO] [stdout] | [INFO] [stdout] 445 | impl TracksId { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 446 | pub fn new(uri: U, kind: K) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uri_offset` is never used [INFO] [stdout] --> src/model.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 458 | impl Playback { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 459 | /// creates new playback with a specified offset based on the current playback [INFO] [stdout] 460 | pub fn uri_offset(&self, uri: String, limit: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_playback` is never used [INFO] [stdout] --> src/model.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 488 | impl PlaybackMetadata { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 489 | pub fn from_playback(p: &CurrentPlaybackContext) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling spotify-client-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `reorder_playlist_items` and `create_new_playlist` are never used [INFO] [stdout] --> src/client/mod.rs:396:14 [INFO] [stdout] | [INFO] [stdout] 38 | impl Client { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | async fn reorder_playlist_items( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 599 | async fn create_new_playlist( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/utils.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stdout] | ^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/client/mod.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn username(&self) -> UserId { [INFO] [stdout] | ^^^^^ ------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | pub fn username(&self) -> UserId<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::constant::*` [INFO] [stdout] --> src/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::constant::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/config.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> src/config.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/auth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/auth.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy::var` [INFO] [stdout] --> src/auth.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dotenvy::var; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SessionError` [INFO] [stdout] --> src/auth.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | session::{Session, SessionError}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config` [INFO] [stdout] --> src/auth.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::config; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reauth` [INFO] [stdout] --> src/auth.rs:140:52 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn new_session(auth_config: &AuthConfig, reauth: bool) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reauth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_uri` is never used [INFO] [stdout] --> src/utils.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_TOP_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub static USER_TOP_TRACKS_ID: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_RECENTLY_PLAYED_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub static USER_RECENTLY_PLAYED_TRACKS_ID: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `USER_LIKED_TRACKS_ID` is never used [INFO] [stdout] --> src/constant.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static USER_LIKED_TRACKS_ID: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CONFIG_FOLDER` is never used [INFO] [stdout] --> src/constant.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const DEFAULT_CONFIG_FOLDER: &str = ".config/spotify-player"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CACHE_FOLDER` is never used [INFO] [stdout] --> src/constant.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const DEFAULT_CACHE_FOLDER: &str = ".cache/spotify-player"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APP_CONFIG_FILE` is never used [INFO] [stdout] --> src/constant.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const APP_CONFIG_FILE: &str = "app.toml"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TracksId` is never constructed [INFO] [stdout] --> src/model.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TracksId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContextId` is never used [INFO] [stdout] --> src/model.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ContextId { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Playback` is never used [INFO] [stdout] --> src/model.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub enum Playback { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TrackOrder` is never used [INFO] [stdout] --> src/model.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum TrackOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Item` is never used [INFO] [stdout] --> src/model.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ItemId` is never used [INFO] [stdout] --> src/model.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum ItemId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaybackMetadata` is never constructed [INFO] [stdout] --> src/model.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct PlaybackMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Device` is never constructed [INFO] [stdout] --> src/model.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct Device { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uri` is never used [INFO] [stdout] --> src/model.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl ContextId { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 198 | pub fn uri(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compare` is never used [INFO] [stdout] --> src/model.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 208 | impl TrackOrder { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 209 | pub fn compare(&self, x: &Track, y: &Track) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_device` is never used [INFO] [stdout] --> src/model.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 220 | impl Device { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 221 | /// tries to convert from a `rspotify_model::Device` into `Device` [INFO] [stdout] 222 | pub fn try_from_device(device: rspotify_model::Device) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model.rs:446:12 [INFO] [stdout] | [INFO] [stdout] 445 | impl TracksId { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 446 | pub fn new(uri: U, kind: K) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `uri_offset` is never used [INFO] [stdout] --> src/model.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 458 | impl Playback { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 459 | /// creates new playback with a specified offset based on the current playback [INFO] [stdout] 460 | pub fn uri_offset(&self, uri: String, limit: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_playback` is never used [INFO] [stdout] --> src/model.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 488 | impl PlaybackMetadata { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 489 | pub fn from_playback(p: &CurrentPlaybackContext) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reorder_playlist_items` and `create_new_playlist` are never used [INFO] [stdout] --> src/client/mod.rs:396:14 [INFO] [stdout] | [INFO] [stdout] 38 | impl Client { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | async fn reorder_playlist_items( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 599 | async fn create_new_playlist( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/utils.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stdout] | ^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn parse_uri(uri: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/client/mod.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn username(&self) -> UserId { [INFO] [stdout] | ^^^^^ ------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | pub fn username(&self) -> UserId<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.92s [INFO] running `Command { std: "docker" "inspect" "5856272d50b1f164710c65552b692b599d2957662298a8dae30ab015c11769db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5856272d50b1f164710c65552b692b599d2957662298a8dae30ab015c11769db", kill_on_drop: false }` [INFO] [stdout] 5856272d50b1f164710c65552b692b599d2957662298a8dae30ab015c11769db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c0568a10361cb609066727ca821268846df7fbc071c24d0184ee24106e06b862 [INFO] running `Command { std: "docker" "start" "-a" "c0568a10361cb609066727ca821268846df7fbc071c24d0184ee24106e06b862", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::constant::*` [INFO] [stderr] --> src/config.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::constant::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `anyhow` [INFO] [stderr] --> src/config.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use anyhow::{anyhow, Result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `PathBuf` [INFO] [stderr] --> src/config.rs:9:18 [INFO] [stderr] | [INFO] [stderr] 9 | path::{Path, PathBuf}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Write` [INFO] [stderr] --> src/auth.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Write; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `anyhow` [INFO] [stderr] --> src/auth.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use anyhow::{anyhow, Result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `dotenvy::var` [INFO] [stderr] --> src/auth.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use dotenvy::var; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SessionError` [INFO] [stderr] --> src/auth.rs:9:24 [INFO] [stderr] | [INFO] [stderr] 9 | session::{Session, SessionError}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::config` [INFO] [stderr] --> src/auth.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use crate::config; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reauth` [INFO] [stderr] --> src/auth.rs:140:52 [INFO] [stderr] | [INFO] [stderr] 140 | pub async fn new_session(auth_config: &AuthConfig, reauth: bool) -> Result { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reauth` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `parse_uri` is never used [INFO] [stderr] --> src/utils.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static `USER_TOP_TRACKS_ID` is never used [INFO] [stderr] --> src/constant.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub static USER_TOP_TRACKS_ID: Lazy = [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `USER_RECENTLY_PLAYED_TRACKS_ID` is never used [INFO] [stderr] --> src/constant.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub static USER_RECENTLY_PLAYED_TRACKS_ID: Lazy = Lazy::new(|| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `USER_LIKED_TRACKS_ID` is never used [INFO] [stderr] --> src/constant.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub static USER_LIKED_TRACKS_ID: Lazy = [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DEFAULT_CONFIG_FOLDER` is never used [INFO] [stderr] --> src/constant.rs:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | pub const DEFAULT_CONFIG_FOLDER: &str = ".config/spotify-player"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DEFAULT_CACHE_FOLDER` is never used [INFO] [stderr] --> src/constant.rs:19:11 [INFO] [stderr] | [INFO] [stderr] 19 | pub const DEFAULT_CACHE_FOLDER: &str = ".cache/spotify-player"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `APP_CONFIG_FILE` is never used [INFO] [stderr] --> src/constant.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 20 | pub const APP_CONFIG_FILE: &str = "app.toml"; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TracksId` is never constructed [INFO] [stderr] --> src/model.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub struct TracksId { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ContextId` is never used [INFO] [stderr] --> src/model.rs:41:10 [INFO] [stderr] | [INFO] [stderr] 41 | pub enum ContextId { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Playback` is never used [INFO] [stderr] --> src/model.rs:55:10 [INFO] [stderr] | [INFO] [stderr] 55 | pub enum Playback { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `TrackOrder` is never used [INFO] [stderr] --> src/model.rs:71:10 [INFO] [stderr] | [INFO] [stderr] 71 | pub enum TrackOrder { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Item` is never used [INFO] [stderr] --> src/model.rs:81:10 [INFO] [stderr] | [INFO] [stderr] 81 | pub enum Item { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ItemId` is never used [INFO] [stderr] --> src/model.rs:89:10 [INFO] [stderr] | [INFO] [stderr] 89 | pub enum ItemId { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PlaybackMetadata` is never constructed [INFO] [stderr] --> src/model.rs:97:12 [INFO] [stderr] | [INFO] [stderr] 97 | pub struct PlaybackMetadata { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Device` is never constructed [INFO] [stderr] --> src/model.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 114 | pub struct Device { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `uri` is never used [INFO] [stderr] --> src/model.rs:198:12 [INFO] [stderr] | [INFO] [stderr] 197 | impl ContextId { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] 198 | pub fn uri(&self) -> String { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `compare` is never used [INFO] [stderr] --> src/model.rs:209:12 [INFO] [stderr] | [INFO] [stderr] 208 | impl TrackOrder { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] 209 | pub fn compare(&self, x: &Track, y: &Track) -> std::cmp::Ordering { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `try_from_device` is never used [INFO] [stderr] --> src/model.rs:222:12 [INFO] [stderr] | [INFO] [stderr] 220 | impl Device { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 221 | /// tries to convert from a `rspotify_model::Device` into `Device` [INFO] [stderr] 222 | pub fn try_from_device(device: rspotify_model::Device) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/model.rs:446:12 [INFO] [stderr] | [INFO] [stderr] 445 | impl TracksId { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 446 | pub fn new(uri: U, kind: K) -> Self [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `uri_offset` is never used [INFO] [stderr] --> src/model.rs:460:12 [INFO] [stderr] | [INFO] [stderr] 458 | impl Playback { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] 459 | /// creates new playback with a specified offset based on the current playback [INFO] [stderr] 460 | pub fn uri_offset(&self, uri: String, limit: usize) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_playback` is never used [INFO] [stderr] --> src/model.rs:489:12 [INFO] [stderr] | [INFO] [stderr] 488 | impl PlaybackMetadata { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 489 | pub fn from_playback(p: &CurrentPlaybackContext) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `reorder_playlist_items` and `create_new_playlist` are never used [INFO] [stderr] --> src/client/mod.rs:396:14 [INFO] [stderr] | [INFO] [stderr] 38 | impl Client { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 396 | async fn reorder_playlist_items( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 599 | async fn create_new_playlist( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/utils.rs:25:23 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn parse_uri(uri: &str) -> Cow { [INFO] [stderr] | ^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 25 | pub fn parse_uri(uri: &str) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/client/mod.rs:62:21 [INFO] [stderr] | [INFO] [stderr] 62 | pub fn username(&self) -> UserId { [INFO] [stderr] | ^^^^^ ------ the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 62 | pub fn username(&self) -> UserId<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `spotify-client-rs` (lib) generated 33 warnings (run `cargo fix --lib -p spotify-client-rs` to apply 8 suggestions) [INFO] [stderr] warning: `spotify-client-rs` (lib test) generated 33 warnings (33 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/spotify_client_rs-9c464d0be6d4ebd6) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::it_works ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::it_works stdout ---- [INFO] [stdout] Failed to authenticate. [INFO] [stdout] Error: Failed to authenticate: Cannot create session: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error::::msg [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.86/src/backtrace.rs:27:14 [INFO] [stdout] 1: anyhow::__private::format_err [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.86/src/lib.rs:692:13 [INFO] [stdout] 2: spotify_client_rs::auth::new_session::{{closure}} [INFO] [stdout] at ./src/auth.rs:158:13 [INFO] [stdout] 3: spotify_client_rs::ClientHandler::client_new::{{closure}} [INFO] [stdout] at ./src/lib.rs:40:61 [INFO] [stdout] 4: spotify_client_rs::tests::it_works::{{closure}} [INFO] [stdout] at ./src/lib.rs:61:49 [INFO] [stdout] 5: as core::future::future::Future>::poll [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/future/future.rs:124:9 [INFO] [stdout] 6: as core::future::future::Future>::poll [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/future/future.rs:124:9 [INFO] [stdout] 7: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:659:73 [INFO] [stdout] 8: tokio::runtime::coop::with_budget [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/coop.rs:107:5 [INFO] [stdout] 9: tokio::runtime::coop::budget [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/coop.rs:73:5 [INFO] [stdout] 10: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:659:25 [INFO] [stdout] 11: tokio::runtime::scheduler::current_thread::Context::enter [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:404:19 [INFO] [stdout] 12: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:658:44 [INFO] [stdout] 13: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:737:68 [INFO] [stdout] 14: tokio::runtime::context::scoped::Scoped::set [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 15: tokio::runtime::context::set_scheduler::{{closure}} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/context.rs:176:38 [INFO] [stdout] 16: std::thread::local::LocalKey::try_with [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/thread/local.rs:315:12 [INFO] [stdout] 17: std::thread::local::LocalKey::with [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/thread/local.rs:279:20 [INFO] [stdout] 18: tokio::runtime::context::set_scheduler [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/context.rs:176:17 [INFO] [stdout] 19: tokio::runtime::scheduler::current_thread::CoreGuard::enter [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:737:27 [INFO] [stdout] 20: tokio::runtime::scheduler::current_thread::CoreGuard::block_on [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:646:24 [INFO] [stdout] 21: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:175:33 [INFO] [stdout] 22: tokio::runtime::context::runtime::enter_runtime [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 23: tokio::runtime::scheduler::current_thread::CurrentThread::block_on [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/scheduler/current_thread/mod.rs:167:9 [INFO] [stdout] 24: tokio::runtime::runtime::Runtime::block_on [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.37.0/src/runtime/runtime.rs:349:52 [INFO] [stdout] 25: spotify_client_rs::tests::it_works [INFO] [stdout] at ./src/lib.rs:67:11 [INFO] [stdout] 26: spotify_client_rs::tests::it_works::{{closure}} [INFO] [stdout] at ./src/lib.rs:58:28 [INFO] [stdout] 27: core::ops::function::FnOnce::call_once [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: core::ops::function::FnOnce::call_once [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 29: test::__rust_begin_short_backtrace [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:648:18 [INFO] [stdout] 30: test::run_test_in_process::{{closure}} [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:671:74 [INFO] [stdout] 31: as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 32: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:589:40 [INFO] [stdout] 33: std::panicking::catch_unwind [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:552:19 [INFO] [stdout] 34: std::panic::catch_unwind [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: test::run_test_in_process [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:671:27 [INFO] [stdout] 36: test::run_test::{{closure}} [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:592:43 [INFO] [stdout] 37: test::run_test::{{closure}} [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/test/src/lib.rs:622:41 [INFO] [stdout] 38: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 39: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}} [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 40: as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 41: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:589:40 [INFO] [stdout] 42: std::panicking::catch_unwind [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panicking.rs:552:19 [INFO] [stdout] 43: std::panic::catch_unwind [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/panic.rs:359:14 [INFO] [stdout] 44: std::thread::Builder::spawn_unchecked_::{{closure}} [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 45: core::ops::function::FnOnce::call_once{{vtable.shim}} [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 46: as core::ops::function::FnOnce>::call_once [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 47: as core::ops::function::FnOnce>::call_once [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 48: std::sys::pal::unix::thread::Thread::new::thread_start [INFO] [stdout] at /rustc/0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 49: [INFO] [stdout] 50: clone [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::it_works [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "c0568a10361cb609066727ca821268846df7fbc071c24d0184ee24106e06b862", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0568a10361cb609066727ca821268846df7fbc071c24d0184ee24106e06b862", kill_on_drop: false }` [INFO] [stdout] c0568a10361cb609066727ca821268846df7fbc071c24d0184ee24106e06b862