[INFO] cloning repository https://github.com/tatimblin/sonos-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tatimblin/sonos-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftatimblin%2Fsonos-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftatimblin%2Fsonos-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31ab27e519d3996fca094139e7ef58318b2564ac [INFO] checking tatimblin/sonos-rs against try#e622d8d7bed4f2668d446e06c6c1436ecae15796 for pr-156776 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftatimblin%2Fsonos-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tatimblin/sonos-rs [INFO] finished tweaking git repo https://github.com/tatimblin/sonos-rs [INFO] tweaked toml for git repo https://github.com/tatimblin/sonos-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tatimblin/sonos-rs on toolchain e622d8d7bed4f2668d446e06c6c1436ecae15796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e622d8d7bed4f2668d446e06c6c1436ecae15796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tatimblin/sonos-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" "+e622d8d7bed4f2668d446e06c6c1436ecae15796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking tatimblin/sonos-rs against try#e622d8d7bed4f2668d446e06c6c1436ecae15796 for pr-156776 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftatimblin%2Fsonos-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tatimblin/sonos-rs [INFO] finished tweaking git repo https://github.com/tatimblin/sonos-rs [INFO] tweaked toml for git repo https://github.com/tatimblin/sonos-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tatimblin/sonos-rs on toolchain e622d8d7bed4f2668d446e06c6c1436ecae15796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e622d8d7bed4f2668d446e06c6c1436ecae15796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tatimblin/sonos-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" "+e622d8d7bed4f2668d446e06c6c1436ecae15796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded warp v0.3.7 [INFO] [stderr] Downloaded tokio-tungstenite v0.21.0 [INFO] [stderr] Downloaded tungstenite v0.21.0 [INFO] [stderr] Downloaded serde-xml-rs v0.6.0 [INFO] [stderr] Downloaded reqwest v0.12.23 [INFO] [stderr] Downloaded quick-xml v0.36.2 [INFO] [stderr] Downloaded rustls v0.23.32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+e622d8d7bed4f2668d446e06c6c1436ecae15796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2de3aeaa48625b0ad3354e7ca67e0f72830644fc4ce701b8fde7a943ebfec160 [INFO] running `Command { std: "docker" "start" "-a" "2de3aeaa48625b0ad3354e7ca67e0f72830644fc4ce701b8fde7a943ebfec160", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2de3aeaa48625b0ad3354e7ca67e0f72830644fc4ce701b8fde7a943ebfec160", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2de3aeaa48625b0ad3354e7ca67e0f72830644fc4ce701b8fde7a943ebfec160", kill_on_drop: false }` [INFO] [stdout] 2de3aeaa48625b0ad3354e7ca67e0f72830644fc4ce701b8fde7a943ebfec160 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+e622d8d7bed4f2668d446e06c6c1436ecae15796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b20367ea18b52b244c8385a9a63ead777156a320cb6127fd47db7ff8f5609b33 [INFO] running `Command { std: "docker" "start" "-a" "b20367ea18b52b244c8385a9a63ead777156a320cb6127fd47db7ff8f5609b33", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling cc v1.2.41 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking indexmap v2.11.4 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde-xml-rs v0.6.0 [INFO] [stderr] Checking quick-xml v0.36.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking sonos v0.1.0 (/opt/rustwide/workdir/sonos) [INFO] [stdout] warning: field `timeout` is never read [INFO] [stdout] --> sonos/src/transport/ssdp.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SsdpClient { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | socket: UdpSocket, [INFO] [stdout] 17 | timeout: Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> sonos/src/streaming/types.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 304 | pub struct RawEvent { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 310 | pub timestamp: SystemTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `subscription_manager` is never read [INFO] [stdout] --> sonos/src/streaming/event_stream.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct EventStream { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 13 | /// Reference to the subscription manager (kept alive for the stream's lifetime) [INFO] [stdout] 14 | subscription_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_speaker`, and `remove_speaker` are never used [INFO] [stdout] --> sonos/src/streaming/event_stream.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl EventStream { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn new(subscription_manager: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn add_speaker(&self, speaker: &Speaker) -> SubscriptionResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove_speaker(&self, speaker_id: &SpeakerId) -> SubscriptionResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw_event_sender` is never read [INFO] [stdout] --> sonos/src/streaming/manager.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct SubscriptionManager { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | raw_event_sender: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionInfo` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1100:12 [INFO] [stdout] | [INFO] [stdout] 1100 | pub struct SubscriptionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionStatistics` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1112:12 [INFO] [stdout] | [INFO] [stdout] 1112 | pub struct SubscriptionStatistics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RecoveryReport` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1122:12 [INFO] [stdout] | [INFO] [stdout] 1122 | pub struct RecoveryReport { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FailedRecovery` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1130:12 [INFO] [stdout] | [INFO] [stdout] 1130 | pub struct FailedRecovery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HealthCheckReport` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1138:12 [INFO] [stdout] | [INFO] [stdout] 1138 | pub struct HealthCheckReport { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RepresentativeSpeakerInfo` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1149:12 [INFO] [stdout] | [INFO] [stdout] 1149 | pub struct RepresentativeSpeakerInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> sonos/src/transport/ssdp.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn search(&self, search_target: &str) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | pub fn search(&self, search_target: &str) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> sonos/examples/callback-test.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> sonos/examples/http-test.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> sonos/examples/http-test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sonos::models` [INFO] [stdout] --> sonos/examples/builder-demo.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use sonos::models::{Speaker, SpeakerId}; [INFO] [stdout] | ^^^^^^ could not find `models` in `sonos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sonos::get_zone_groups_from_speaker` [INFO] [stdout] --> sonos/tests/state.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use sonos::{discover_speakers_with_timeout, get_zone_groups_from_speaker, SonosError, StateCache}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `get_zone_groups_from_speaker` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | assert!(!speaker.udn.is_empty(), "UDN should not be empty"); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | assert!(speaker.udn.starts_with("uuid:RINCON_"), [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:42:80 [INFO] [stdout] | [INFO] [stdout] 42 | "Sonos UDN should start with 'uuid:RINCON_', got: {}", speaker.udn); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:84:75 [INFO] [stdout] | [INFO] [stdout] 84 | let udns1: std::collections::HashSet<_> = speakers1.iter().map(|s| &s.udn).collect(); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:85:75 [INFO] [stdout] | [INFO] [stdout] 85 | let udns2: std::collections::HashSet<_> = speakers2.iter().map(|s| &s.udn).collect(); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:116:49 [INFO] [stdout] | [INFO] [stdout] 116 | .filter(|s| s.id == speaker.id && s.udn != speaker.udn) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:116:64 [INFO] [stdout] | [INFO] [stdout] 116 | .filter(|s| s.id == speaker.id && s.udn != speaker.udn) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (example "builder-demo") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0609]: no field `udn` on type `&&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:123:27 [INFO] [stdout] | [INFO] [stdout] 123 | .filter(|s| s.udn == speaker.udn) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | .filter(|s| s.udn == speaker.udn) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/discovery.rs:127:50 [INFO] [stdout] | [INFO] [stdout] 127 | duplicate_udns.len(), speaker.udn); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0609`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 62 | .get_speaker(original_speaker.id) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 62 | .get_speaker(&original_speaker.id) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `udn` on type `Speaker` [INFO] [stdout] --> sonos/tests/state.rs:77:43 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(cached_speaker.speaker.udn, original_speaker.udn); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (test "discovery") due to 10 previous errors [INFO] [stdout] error[E0609]: no field `udn` on type `&Speaker` [INFO] [stdout] --> sonos/tests/state.rs:77:65 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(cached_speaker.speaker.udn, original_speaker.udn); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `room_name`, `ip_address`, `port` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventStreamBuilder` and `ServiceType` [INFO] [stdout] --> sonos/tests/non_blocking_event_processing.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use sonos::streaming::{EventStreamBuilder, ServiceType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/builder_pattern.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | id: SpeakerId::from_udn(udn), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 13 - id: SpeakerId::from_udn(udn), [INFO] [stdout] 13 + id: SpeakerId::from(udn), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Speaker` has no field named `udn` [INFO] [stdout] --> sonos/tests/builder_pattern.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | udn: udn.to_string(), [INFO] [stdout] | ^^^ `Speaker` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_all_groups` found for struct `StateCache` in the current scope [INFO] [stdout] --> sonos/tests/state.rs:95:31 [INFO] [stdout] | [INFO] [stdout] 95 | let cached_groups = cache.get_all_groups(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_groups` with a similar name [INFO] [stdout] | [INFO] [stdout] 95 - let cached_groups = cache.get_all_groups(); [INFO] [stdout] 95 + let cached_groups = cache.get_groups(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `sonos::SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/error_isolation_test.rs:78:28 [INFO] [stdout] | [INFO] [stdout] 78 | id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `sonos::SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `sonos::SpeakerId`, consider using `sonos::SpeakerId::new` which returns `sonos::SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 78 - id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] 78 + id: SpeakerId::from("uuid:RINCON_TEST123::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `sonos::Speaker` has no field named `udn` [INFO] [stdout] --> sonos/tests/error_isolation_test.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | udn: "uuid:RINCON_TEST123::1".to_string(), [INFO] [stdout] | ^^^ `sonos::Speaker` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | id: SpeakerId::from_udn(udn), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 11 - id: SpeakerId::from_udn(udn), [INFO] [stdout] 11 + id: SpeakerId::from(udn), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Speaker` has no field named `udn` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | udn: udn.to_string(), [INFO] [stdout] | ^^^ `Speaker` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `coordinator` on type `Group` [INFO] [stdout] --> sonos/tests/state.rs:103:33 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(cached_group.coordinator, original_group.coordinator); [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `members` of struct `Group` is private [INFO] [stdout] --> sonos/tests/state.rs:104:33 [INFO] [stdout] | [INFO] [stdout] 104 | assert_eq!(cached_group.members.len(), original_group.members.len()); [INFO] [stdout] | ^^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `members` of struct `Group` is private [INFO] [stdout] --> sonos/tests/state.rs:107:37 [INFO] [stdout] | [INFO] [stdout] 107 | for member in &cached_group.members { [INFO] [stdout] | ^^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0560`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0560`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/non_blocking_integration_test.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | id: SpeakerId::from_udn("uuid:RINCON_INTEGRATION_TEST::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 14 - id: SpeakerId::from_udn("uuid:RINCON_INTEGRATION_TEST::1"), [INFO] [stdout] 14 + id: SpeakerId::from("uuid:RINCON_INTEGRATION_TEST::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Speaker` has no field named `udn` [INFO] [stdout] --> sonos/tests/non_blocking_integration_test.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | udn: "uuid:RINCON_INTEGRATION_TEST::1".to_string(), [INFO] [stdout] | ^^^ `Speaker` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (test "builder_pattern") due to 2 previous errors [INFO] [stderr] error: could not compile `sonos` (test "error_isolation_test") due to 2 previous errors [INFO] [stdout] error[E0432]: unresolved import `sonos::models` [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:99:16 [INFO] [stdout] | [INFO] [stdout] 99 | use sonos::models::{StateChange, SpeakerId, GroupId}; [INFO] [stdout] | ^^^^^^ could not find `models` in `sonos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `speaker_id` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn _create_test_events(speaker_id: SpeakerId) -> Vec { [INFO] [stdout] | ---------- move occurs because `speaker_id` has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 26 | speaker_id, [INFO] [stdout] | ---------- value moved here [INFO] [stdout] ... [INFO] [stdout] 30 | speaker_id, [INFO] [stdout] | ^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 26 | speaker_id: speaker_id.clone(), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `speaker_id` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn _create_test_events(speaker_id: SpeakerId) -> Vec { [INFO] [stdout] | ---------- move occurs because `speaker_id` has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 30 | speaker_id, [INFO] [stdout] | ---------- value moved here [INFO] [stdout] ... [INFO] [stdout] 34 | speaker_id, [INFO] [stdout] | ^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 30 | speaker_id: speaker_id.clone(), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `speaker_id` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn _create_test_events(speaker_id: SpeakerId) -> Vec { [INFO] [stdout] | ---------- move occurs because `speaker_id` has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 34 | speaker_id, [INFO] [stdout] | ---------- value moved here [INFO] [stdout] ... [INFO] [stdout] 38 | speaker_id, [INFO] [stdout] | ^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 34 | speaker_id: speaker_id.clone(), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `speaker_id` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 23 | fn _create_test_events(speaker_id: SpeakerId) -> Vec { [INFO] [stdout] | ---------- move occurs because `speaker_id` has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 38 | speaker_id, [INFO] [stdout] | ---------- value moved here [INFO] [stdout] ... [INFO] [stdout] 42 | speaker_id, [INFO] [stdout] | ^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 38 | speaker_id: speaker_id.clone(), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/non_blocking_event_processing.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 12 - id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] 12 + id: SpeakerId::from("uuid:RINCON_TEST123::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Speaker` has no field named `udn` [INFO] [stdout] --> sonos/tests/non_blocking_event_processing.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | udn: "uuid:RINCON_TEST123::1".to_string(), [INFO] [stdout] | ^^^ `Speaker` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `speaker_id` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:125:49 [INFO] [stdout] | [INFO] [stdout] 123 | .with_speaker_connected(move |speaker_id| { [INFO] [stdout] | ---------- move occurs because `speaker_id` has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] 124 | connected_calls_clone.lock().unwrap().push(speaker_id); [INFO] [stdout] | ---------- value moved here [INFO] [stdout] 125 | println!("Speaker connected: {:?}", speaker_id); [INFO] [stdout] | ^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `speaker_id` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:129:52 [INFO] [stdout] | [INFO] [stdout] 127 | .with_speaker_disconnected(move |speaker_id| { [INFO] [stdout] | ---------- move occurs because `speaker_id` has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] 128 | disconnected_calls_clone.lock().unwrap().push(speaker_id); [INFO] [stdout] | ---------- value moved here [INFO] [stdout] 129 | println!("Speaker disconnected: {:?}", speaker_id); [INFO] [stdout] | ^^^^^^^^^^ value borrowed here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/non_blocking_integration_test.rs:124:36 [INFO] [stdout] | [INFO] [stdout] 124 | speaker_id: SpeakerId::from_udn("uuid:RINCON_FLAG_TEST::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 124 - speaker_id: SpeakerId::from_udn("uuid:RINCON_FLAG_TEST::1"), [INFO] [stdout] 124 + speaker_id: SpeakerId::from("uuid:RINCON_FLAG_TEST::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:470:25 [INFO] [stdout] | [INFO] [stdout] 470 | speaker_id: speakers[0].id, [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because value has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 470 | speaker_id: speakers[0].id.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:474:25 [INFO] [stdout] | [INFO] [stdout] 474 | speaker_id: speakers[0].id, [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because value has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 474 | speaker_id: speakers[0].id.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> sonos/tests/event_processing_integration.rs:478:25 [INFO] [stdout] | [INFO] [stdout] 478 | speaker_id: speakers[1].id, [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because value has type `SpeakerId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 478 | speaker_id: speakers[1].id.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0507, E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (test "event_processing_integration") due to 11 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:256:39 [INFO] [stdout] | [INFO] [stdout] 256 | let found = cache.get_speaker(speaker.id); [INFO] [stdout] | ----------- ^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 256 | let found = cache.get_speaker(&speaker.id); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/non_blocking_integration_test.rs:183:36 [INFO] [stdout] | [INFO] [stdout] 183 | speaker_id: SpeakerId::from_udn("uuid:RINCON_MULTI_HANDLER::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 183 - speaker_id: SpeakerId::from_udn("uuid:RINCON_MULTI_HANDLER::1"), [INFO] [stdout] 183 + speaker_id: SpeakerId::from("uuid:RINCON_MULTI_HANDLER::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:297:25 [INFO] [stdout] | [INFO] [stdout] 297 | cache.update_volume(test_speaker.id, 50); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn update_volume(&self, id: &SpeakerId, volume: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 297 | cache.update_volume(&test_speaker.id, 50); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/non_blocking_event_processing.rs:150:36 [INFO] [stdout] | [INFO] [stdout] 150 | speaker_id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 150 - speaker_id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] 150 + speaker_id: SpeakerId::from("uuid:RINCON_TEST123::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0560, E0599. [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (test "non_blocking_integration_test") due to 4 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0560`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:298:43 [INFO] [stdout] | [INFO] [stdout] 298 | let updated_state = cache.get_speaker(test_speaker.id).unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 298 | let updated_state = cache.get_speaker(&test_speaker.id).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:302:23 [INFO] [stdout] | [INFO] [stdout] 302 | cache.update_mute(test_speaker.id, true); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn update_mute(&self, id: &SpeakerId, muted: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 302 | cache.update_mute(&test_speaker.id, true); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/non_blocking_event_processing.rs:203:36 [INFO] [stdout] | [INFO] [stdout] 203 | speaker_id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 203 - speaker_id: SpeakerId::from_udn("uuid:RINCON_TEST123::1"), [INFO] [stdout] 203 + speaker_id: SpeakerId::from("uuid:RINCON_TEST123::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated function or constant named `from_udn` found for struct `SpeakerId` in the current scope [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | id: SpeakerId::from_udn("uuid:RINCON_123456789::1"), [INFO] [stdout] | ^^^^^^^^ associated function or constant not found in `SpeakerId` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `SpeakerId`, consider using `SpeakerId::new` which returns `SpeakerId` [INFO] [stdout] --> sonos/src/model/speaker_id.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(id: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 11 - id: SpeakerId::from_udn("uuid:RINCON_123456789::1"), [INFO] [stdout] 11 + id: SpeakerId::from("uuid:RINCON_123456789::1"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:303:43 [INFO] [stdout] | [INFO] [stdout] 303 | let updated_state = cache.get_speaker(test_speaker.id).unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 303 | let updated_state = cache.get_speaker(&test_speaker.id).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Speaker` has no field named `udn` [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | udn: "uuid:RINCON_123456789::1".to_string(), [INFO] [stdout] | ^^^ `Speaker` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `SpeakerJoinedGroup` found for enum `StateChange` [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | StateChange::SpeakerJoinedGroup { .. } | [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant not found in `StateChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `SpeakerLeftGroup` found for enum `StateChange` [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 37 | StateChange::SpeakerLeftGroup { .. } | [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant not found in `StateChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `CoordinatorChanged` found for enum `StateChange` [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | StateChange::CoordinatorChanged { .. } | [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant not found in `StateChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `GroupFormed` found for enum `StateChange` [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | StateChange::GroupFormed { .. } | [INFO] [stdout] | ^^^^^^^^^^^ variant not found in `StateChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `GroupDissolved` found for enum `StateChange` [INFO] [stdout] --> sonos/tests/zone_group_topology_integration.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | StateChange::GroupDissolved { .. } => { [INFO] [stdout] | ^^^^^^^^^^^^^^ variant not found in `StateChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0560`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:307:33 [INFO] [stdout] | [INFO] [stdout] 307 | cache.update_playback_state(test_speaker.id, sonos::PlaybackState::Playing); [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn update_playback_state(&self, id: &SpeakerId, state: PlaybackState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 307 | cache.update_playback_state(&test_speaker.id, sonos::PlaybackState::Playing); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (test "non_blocking_event_processing") due to 4 previous errors; 1 warning emitted [INFO] [stdout] Some errors have detailed explanations: E0432, E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:308:43 [INFO] [stdout] | [INFO] [stdout] 308 | let updated_state = cache.get_speaker(test_speaker.id).unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 308 | let updated_state = cache.get_speaker(&test_speaker.id).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (test "zone_group_topology_integration") due to 8 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:312:27 [INFO] [stdout] | [INFO] [stdout] 312 | cache.update_position(test_speaker.id, 30000); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn update_position(&self, id: &SpeakerId, position_ms: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 312 | cache.update_position(&test_speaker.id, 30000); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:313:43 [INFO] [stdout] | [INFO] [stdout] 313 | let updated_state = cache.get_speaker(test_speaker.id).unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 313 | let updated_state = cache.get_speaker(&test_speaker.id).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timeout` is never read [INFO] [stdout] --> sonos/src/transport/ssdp.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SsdpClient { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | socket: UdpSocket, [INFO] [stdout] 17 | timeout: Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:318:45 [INFO] [stdout] | [INFO] [stdout] 318 | let other_state = cache.get_speaker(other_speaker.id).unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 318 | let other_state = cache.get_speaker(&other_speaker.id).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `subscription_manager` is never read [INFO] [stdout] --> sonos/src/streaming/event_stream.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) struct EventStream { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 13 | /// Reference to the subscription manager (kept alive for the stream's lifetime) [INFO] [stdout] 14 | subscription_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_speaker`, and `remove_speaker` are never used [INFO] [stdout] --> sonos/src/streaming/event_stream.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl EventStream { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub(crate) fn new(subscription_manager: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn add_speaker(&self, speaker: &Speaker) -> SubscriptionResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove_speaker(&self, speaker_id: &SpeakerId) -> SubscriptionResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_speaker` is never used [INFO] [stdout] --> sonos/src/streaming/event_stream.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | fn create_test_speaker(id: &str) -> Speaker { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw_event_sender` is never read [INFO] [stdout] --> sonos/src/streaming/manager.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct SubscriptionManager { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | raw_event_sender: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionInfo` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1100:12 [INFO] [stdout] | [INFO] [stdout] 1100 | pub struct SubscriptionInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionStatistics` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1112:12 [INFO] [stdout] | [INFO] [stdout] 1112 | pub struct SubscriptionStatistics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RecoveryReport` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1122:12 [INFO] [stdout] | [INFO] [stdout] 1122 | pub struct RecoveryReport { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FailedRecovery` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1130:12 [INFO] [stdout] | [INFO] [stdout] 1130 | pub struct FailedRecovery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HealthCheckReport` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1138:12 [INFO] [stdout] | [INFO] [stdout] 1138 | pub struct HealthCheckReport { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RepresentativeSpeakerInfo` is never constructed [INFO] [stdout] --> sonos/src/streaming/manager.rs:1149:12 [INFO] [stdout] | [INFO] [stdout] 1149 | pub struct RepresentativeSpeakerInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_speaker` is never used [INFO] [stdout] --> sonos/src/streaming/manager.rs:1260:8 [INFO] [stdout] | [INFO] [stdout] 1260 | fn create_test_speaker(id: &str, ip: &str, name: &str) -> Speaker { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_manager` is never used [INFO] [stdout] --> sonos/src/streaming/manager.rs:1272:8 [INFO] [stdout] | [INFO] [stdout] 1272 | fn create_test_manager() -> SubscriptionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> sonos/src/transport/ssdp.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn search(&self, search_target: &str) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | pub fn search(&self, search_target: &str) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:360:25 [INFO] [stdout] | [INFO] [stdout] 360 | cache.update_volume(test_speaker.id, 75); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn update_volume(&self, id: &SpeakerId, volume: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 360 | cache.update_volume(&test_speaker.id, 75); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:362:44 [INFO] [stdout] | [INFO] [stdout] 362 | let original_state = cache.get_speaker(test_speaker.id).unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 362 | let original_state = cache.get_speaker(&test_speaker.id).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> sonos/tests/state.rs:363:49 [INFO] [stdout] | [INFO] [stdout] 363 | let cloned_state = cloned_cache.get_speaker(test_speaker.id).unwrap(); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ expected `&SpeakerId`, found `SpeakerId` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> sonos/src/state.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_speaker(&self, id: &SpeakerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 363 | let cloned_state = cloned_cache.get_speaker(&test_speaker.id).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0599, E0609, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sonos` (test "state") due to 21 previous errors [INFO] running `Command { std: "docker" "inspect" "b20367ea18b52b244c8385a9a63ead777156a320cb6127fd47db7ff8f5609b33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b20367ea18b52b244c8385a9a63ead777156a320cb6127fd47db7ff8f5609b33", kill_on_drop: false }` [INFO] [stdout] b20367ea18b52b244c8385a9a63ead777156a320cb6127fd47db7ff8f5609b33