[INFO] fetching crate coinbase_pro 0.1.1... [INFO] testing coinbase_pro-0.1.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate coinbase_pro 0.1.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate coinbase_pro 0.1.1 [INFO] finished tweaking crates.io crate coinbase_pro 0.1.1 [INFO] tweaked toml for crates.io crate coinbase_pro 0.1.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate coinbase_pro 0.1.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 233 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding mockall v0.11.4 (available: v0.13.1) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] [stderr] Adding simple_logger v2.3.0 (available: v5.0.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e3ef60a09ac224247ab14beb349ae68f087fcb9fabce5d378f487f134eab6c4b [INFO] running `Command { std: "docker" "start" "-a" "e3ef60a09ac224247ab14beb349ae68f087fcb9fabce5d378f487f134eab6c4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e3ef60a09ac224247ab14beb349ae68f087fcb9fabce5d378f487f134eab6c4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3ef60a09ac224247ab14beb349ae68f087fcb9fabce5d378f487f134eab6c4b", kill_on_drop: false }` [INFO] [stdout] e3ef60a09ac224247ab14beb349ae68f087fcb9fabce5d378f487f134eab6c4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f0fc2b5b9f57f3552ae4919e72b9210e79b13492f29143ad4c88b06df63911e [INFO] running `Command { std: "docker" "start" "-a" "2f0fc2b5b9f57f3552ae4919e72b9210e79b13492f29143ad4c88b06df63911e", kill_on_drop: false }` [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling time-macros v0.2.23 [INFO] [stderr] Compiling deranged v0.5.3 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling time v0.3.42 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling simple_logger v2.3.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling coinbase_pro v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/api.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::net::SocketAddr; [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::pin::Pin` [INFO] [stdout] --> src/api.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SocketAddressError` and `URLParseError` [INFO] [stdout] --> src/api.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | SocketAddressError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | URLParseError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:371:27 [INFO] [stdout] | [INFO] [stdout] 371 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:384:23 [INFO] [stdout] | [INFO] [stdout] 384 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:727:23 [INFO] [stdout] | [INFO] [stdout] 727 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:762:23 [INFO] [stdout] | [INFO] [stdout] 762 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 163 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:181:15 [INFO] [stdout] | [INFO] [stdout] 181 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:367:11 [INFO] [stdout] | [INFO] [stdout] 367 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:200:19 [INFO] [stdout] | [INFO] [stdout] 200 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:237:19 [INFO] [stdout] | [INFO] [stdout] 237 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:252:23 [INFO] [stdout] | [INFO] [stdout] 252 | #[cfg(not(backtrace))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:277:19 [INFO] [stdout] | [INFO] [stdout] 277 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:291:23 [INFO] [stdout] | [INFO] [stdout] 291 | #[cfg(not(backtrace))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:354:11 [INFO] [stdout] | [INFO] [stdout] 354 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:379:15 [INFO] [stdout] | [INFO] [stdout] 379 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/requests.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/websocket_lite.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/websocket_lite.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Index` [INFO] [stdout] --> src/websocket_lite.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | DerefMut, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | Index, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LockResult` [INFO] [stdout] --> src/websocket_lite.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | LockResult, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/websocket_lite.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/websocket_lite.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `trace` [INFO] [stdout] --> src/websocket_lite.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | trace, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoUrl` [INFO] [stdout] --> src/websocket_lite.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | IntoUrl, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `URLParseError` and `WebsocketIOError` [INFO] [stdout] --> src/websocket_lite.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | URLParseError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 66 | WebsocketIOError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnexpectedEnd` [INFO] [stdout] --> src/websocket_lite.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | UnexpectedEnd, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:370:23 [INFO] [stdout] | [INFO] [stdout] 370 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:393:23 [INFO] [stdout] | [INFO] [stdout] 393 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:485:23 [INFO] [stdout] | [INFO] [stdout] 485 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/requests.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | let req = request.try_clone().unwrap().build().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:525:17 [INFO] [stdout] | [INFO] [stdout] 525 | let mut byte = stream.read_u8().await.ok()?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/api.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncRead` [INFO] [stdout] --> src/api.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | AsyncRead, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWrite` [INFO] [stdout] --> src/api.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | AsyncWrite, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/errors.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | let mut text = format!( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/errors.rs:373:13 [INFO] [stdout] | [INFO] [stdout] 373 | let mut text = format!( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | FrameLength::Short(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | FrameLength::Medium(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:114:31 [INFO] [stdout] | [INFO] [stdout] 114 | FrameLength::Long(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:144:32 [INFO] [stdout] | [INFO] [stdout] 144 | .for_each(|(index, mut byte)| data.push(byte ^ mask[index % 4])); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/websocket_lite.rs:612:25 [INFO] [stdout] | [INFO] [stdout] 612 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:590:21 [INFO] [stdout] | [INFO] [stdout] 590 | let mut frame_buffer = ok_or_return_poll_poison!(self.frame_buffer.lock()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `match_products` is never read [INFO] [stdout] --> src/api.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct SubscriptionBuilder { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 138 | match_products: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_tls_stream` is never used [INFO] [stdout] --> src/api.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | pub(crate) async fn default_tls_stream(url: &str) -> TlsStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `coin_base_url` is never read [INFO] [stdout] --> src/api.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 416 | pub struct CBProAPI { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 417 | pub client: Client, [INFO] [stdout] 418 | coin_base_url: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CBProAPI` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderError` is never used [INFO] [stdout] --> src/errors.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum OrderError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `final_flag` and `mask` are never read [INFO] [stdout] --> src/websocket_lite.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct ParsedFrame { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 75 | final_flag: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | mask: Option<[u8; 4]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Websocket` is never constructed [INFO] [stdout] --> src/websocket_lite.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 420 | pub enum WebsocketState { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 421 | HTTP, [INFO] [stdout] 422 | Websocket, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_no_sec` is never used [INFO] [stdout] --> src/websocket_lite.rs:438:19 [INFO] [stdout] | [INFO] [stdout] 437 | impl WebsocketStreamConnector { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 438 | pub(crate) fn new_no_sec() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/websocket_lite.rs:559:5 [INFO] [stdout] | [INFO] [stdout] 553 | pub struct WebsocketStream [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 559 | state: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_buffer_lock` is never used [INFO] [stdout] --> src/websocket_lite.rs:567:8 [INFO] [stdout] | [INFO] [stdout] 563 | / impl WebsocketStream [INFO] [stdout] 564 | | where [INFO] [stdout] 565 | | T: AsyncIO, [INFO] [stdout] | |_______________- method in this implementation [INFO] [stdout] 566 | { [INFO] [stdout] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/websocket_lite.rs:567:25 [INFO] [stdout] | [INFO] [stdout] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided 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] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.31s [INFO] running `Command { std: "docker" "inspect" "2f0fc2b5b9f57f3552ae4919e72b9210e79b13492f29143ad4c88b06df63911e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f0fc2b5b9f57f3552ae4919e72b9210e79b13492f29143ad4c88b06df63911e", kill_on_drop: false }` [INFO] [stdout] 2f0fc2b5b9f57f3552ae4919e72b9210e79b13492f29143ad4c88b06df63911e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63e9d27c49edcbccaea49bbbebb61193bdb77c003ebdf09899decc2eb5238c38 [INFO] running `Command { std: "docker" "start" "-a" "63e9d27c49edcbccaea49bbbebb61193bdb77c003ebdf09899decc2eb5238c38", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling coinbase_pro v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/api.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::net::SocketAddr; [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::pin::Pin` [INFO] [stdout] --> src/api.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SocketAddressError` and `URLParseError` [INFO] [stdout] --> src/api.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | SocketAddressError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | URLParseError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:371:27 [INFO] [stdout] | [INFO] [stdout] 371 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:384:23 [INFO] [stdout] | [INFO] [stdout] 384 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:727:23 [INFO] [stdout] | [INFO] [stdout] 727 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:762:23 [INFO] [stdout] | [INFO] [stdout] 762 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 163 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:181:15 [INFO] [stdout] | [INFO] [stdout] 181 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:367:11 [INFO] [stdout] | [INFO] [stdout] 367 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:200:19 [INFO] [stdout] | [INFO] [stdout] 200 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:237:19 [INFO] [stdout] | [INFO] [stdout] 237 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:252:23 [INFO] [stdout] | [INFO] [stdout] 252 | #[cfg(not(backtrace))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:277:19 [INFO] [stdout] | [INFO] [stdout] 277 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:291:23 [INFO] [stdout] | [INFO] [stdout] 291 | #[cfg(not(backtrace))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:354:11 [INFO] [stdout] | [INFO] [stdout] 354 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:379:15 [INFO] [stdout] | [INFO] [stdout] 379 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/requests.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/websocket_lite.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/websocket_lite.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Index` [INFO] [stdout] --> src/websocket_lite.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | DerefMut, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | Index, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LockResult` [INFO] [stdout] --> src/websocket_lite.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | LockResult, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/websocket_lite.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/websocket_lite.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `trace` [INFO] [stdout] --> src/websocket_lite.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | trace, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoUrl` [INFO] [stdout] --> src/websocket_lite.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | IntoUrl, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `URLParseError` and `WebsocketIOError` [INFO] [stdout] --> src/websocket_lite.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | URLParseError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 66 | WebsocketIOError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnexpectedEnd` [INFO] [stdout] --> src/websocket_lite.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | UnexpectedEnd, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:370:23 [INFO] [stdout] | [INFO] [stdout] 370 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:393:23 [INFO] [stdout] | [INFO] [stdout] 393 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:485:23 [INFO] [stdout] | [INFO] [stdout] 485 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/requests.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | let req = request.try_clone().unwrap().build().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:525:17 [INFO] [stdout] | [INFO] [stdout] 525 | let mut byte = stream.read_u8().await.ok()?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/api.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncRead` [INFO] [stdout] --> src/api.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | AsyncRead, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWrite` [INFO] [stdout] --> src/api.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | AsyncWrite, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/errors.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | let mut text = format!( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/errors.rs:373:13 [INFO] [stdout] | [INFO] [stdout] 373 | let mut text = format!( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | FrameLength::Short(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | FrameLength::Medium(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:114:31 [INFO] [stdout] | [INFO] [stdout] 114 | FrameLength::Long(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:144:32 [INFO] [stdout] | [INFO] [stdout] 144 | .for_each(|(index, mut byte)| data.push(byte ^ mask[index % 4])); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/websocket_lite.rs:612:25 [INFO] [stdout] | [INFO] [stdout] 612 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:590:21 [INFO] [stdout] | [INFO] [stdout] 590 | let mut frame_buffer = ok_or_return_poll_poison!(self.frame_buffer.lock()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/api.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::net::SocketAddr; [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::pin::Pin` [INFO] [stdout] --> src/api.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stdout] --> src/api.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | AsyncRead, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | AsyncReadExt, [INFO] [stdout] 23 | AsyncWrite, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SocketAddressError` and `URLParseError` [INFO] [stdout] --> src/api.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | SocketAddressError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | URLParseError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:371:27 [INFO] [stdout] | [INFO] [stdout] 371 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:384:23 [INFO] [stdout] | [INFO] [stdout] 384 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:727:23 [INFO] [stdout] | [INFO] [stdout] 727 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/api.rs:762:23 [INFO] [stdout] | [INFO] [stdout] 762 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 163 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:181:15 [INFO] [stdout] | [INFO] [stdout] 181 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:367:11 [INFO] [stdout] | [INFO] [stdout] 367 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:200:19 [INFO] [stdout] | [INFO] [stdout] 200 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:237:19 [INFO] [stdout] | [INFO] [stdout] 237 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:252:23 [INFO] [stdout] | [INFO] [stdout] 252 | #[cfg(not(backtrace))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:277:19 [INFO] [stdout] | [INFO] [stdout] 277 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:291:23 [INFO] [stdout] | [INFO] [stdout] 291 | #[cfg(not(backtrace))] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:354:11 [INFO] [stdout] | [INFO] [stdout] 354 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/errors.rs:379:15 [INFO] [stdout] | [INFO] [stdout] 379 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/requests.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/websocket_lite.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/websocket_lite.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Index` [INFO] [stdout] --> src/websocket_lite.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | DerefMut, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | Index, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LockResult` [INFO] [stdout] --> src/websocket_lite.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | LockResult, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/websocket_lite.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/websocket_lite.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `trace` [INFO] [stdout] --> src/websocket_lite.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | trace, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntoUrl` [INFO] [stdout] --> src/websocket_lite.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | IntoUrl, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `URLParseError` and `WebsocketIOError` [INFO] [stdout] --> src/websocket_lite.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | URLParseError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 66 | WebsocketIOError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnexpectedEnd` [INFO] [stdout] --> src/websocket_lite.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | UnexpectedEnd, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:370:23 [INFO] [stdout] | [INFO] [stdout] 370 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:393:23 [INFO] [stdout] | [INFO] [stdout] 393 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stdout] --> src/websocket_lite.rs:485:23 [INFO] [stdout] | [INFO] [stdout] 485 | #[cfg(backtrace)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/requests.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | let req = request.try_clone().unwrap().build().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:525:17 [INFO] [stdout] | [INFO] [stdout] 525 | let mut byte = stream.read_u8().await.ok()?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `match_products` is never read [INFO] [stdout] --> src/api.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct SubscriptionBuilder { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 138 | match_products: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_tls_stream` is never used [INFO] [stdout] --> src/api.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | pub(crate) async fn default_tls_stream(url: &str) -> TlsStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `coin_base_url` is never read [INFO] [stdout] --> src/api.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 416 | pub struct CBProAPI { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 417 | pub client: Client, [INFO] [stdout] 418 | coin_base_url: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CBProAPI` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderError` is never used [INFO] [stdout] --> src/errors.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum OrderError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `final_flag` and `mask` are never read [INFO] [stdout] --> src/websocket_lite.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct ParsedFrame { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 75 | final_flag: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | mask: Option<[u8; 4]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Websocket` is never constructed [INFO] [stdout] --> src/websocket_lite.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 420 | pub enum WebsocketState { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 421 | HTTP, [INFO] [stdout] 422 | Websocket, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_no_sec` is never used [INFO] [stdout] --> src/websocket_lite.rs:438:19 [INFO] [stdout] | [INFO] [stdout] 437 | impl WebsocketStreamConnector { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 438 | pub(crate) fn new_no_sec() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/websocket_lite.rs:559:5 [INFO] [stdout] | [INFO] [stdout] 553 | pub struct WebsocketStream [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 559 | state: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_buffer_lock` is never used [INFO] [stdout] --> src/websocket_lite.rs:567:8 [INFO] [stdout] | [INFO] [stdout] 563 | / impl WebsocketStream [INFO] [stdout] 564 | | where [INFO] [stdout] 565 | | T: AsyncIO, [INFO] [stdout] | |_______________- method in this implementation [INFO] [stdout] 566 | { [INFO] [stdout] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/websocket_lite.rs:567:25 [INFO] [stdout] | [INFO] [stdout] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided 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] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/api.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/errors.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | let mut text = format!( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/errors.rs:373:13 [INFO] [stdout] | [INFO] [stdout] 373 | let mut text = format!( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | FrameLength::Short(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:113:33 [INFO] [stdout] | [INFO] [stdout] 113 | FrameLength::Medium(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:114:31 [INFO] [stdout] | [INFO] [stdout] 114 | FrameLength::Long(mut bytes) => bytes.to_vec(), [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:144:32 [INFO] [stdout] | [INFO] [stdout] 144 | .for_each(|(index, mut byte)| data.push(byte ^ mask[index % 4])); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/websocket_lite.rs:612:25 [INFO] [stdout] | [INFO] [stdout] 612 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/websocket_lite.rs:590:21 [INFO] [stdout] | [INFO] [stdout] 590 | let mut frame_buffer = ok_or_return_poll_poison!(self.frame_buffer.lock()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:1570:13 [INFO] [stdout] | [INFO] [stdout] 1570 | let res = SimpleLogger::new().with_level(LevelFilter::Debug).init(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `match_products` is never read [INFO] [stdout] --> src/api.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct SubscriptionBuilder { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 138 | match_products: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_tls_stream` is never used [INFO] [stdout] --> src/api.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | pub(crate) async fn default_tls_stream(url: &str) -> TlsStream { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `coin_base_url` is never read [INFO] [stdout] --> src/api.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 416 | pub struct CBProAPI { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 417 | pub client: Client, [INFO] [stdout] 418 | coin_base_url: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CBProAPI` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderError` is never used [INFO] [stdout] --> src/errors.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | pub enum OrderError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `final_flag` and `mask` are never read [INFO] [stdout] --> src/websocket_lite.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct ParsedFrame { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 75 | final_flag: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | mask: Option<[u8; 4]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Websocket` is never constructed [INFO] [stdout] --> src/websocket_lite.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 420 | pub enum WebsocketState { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 421 | HTTP, [INFO] [stdout] 422 | Websocket, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_no_sec` is never used [INFO] [stdout] --> src/websocket_lite.rs:438:19 [INFO] [stdout] | [INFO] [stdout] 437 | impl WebsocketStreamConnector { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 438 | pub(crate) fn new_no_sec() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/websocket_lite.rs:559:5 [INFO] [stdout] | [INFO] [stdout] 553 | pub struct WebsocketStream [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 559 | state: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_buffer_lock` is never used [INFO] [stdout] --> src/websocket_lite.rs:567:8 [INFO] [stdout] | [INFO] [stdout] 563 | / impl WebsocketStream [INFO] [stdout] 564 | | where [INFO] [stdout] 565 | | T: AsyncIO, [INFO] [stdout] | |_______________- method in this implementation [INFO] [stdout] 566 | { [INFO] [stdout] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/websocket_lite.rs:567:25 [INFO] [stdout] | [INFO] [stdout] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided 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] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 29.67s [INFO] running `Command { std: "docker" "inspect" "63e9d27c49edcbccaea49bbbebb61193bdb77c003ebdf09899decc2eb5238c38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63e9d27c49edcbccaea49bbbebb61193bdb77c003ebdf09899decc2eb5238c38", kill_on_drop: false }` [INFO] [stdout] 63e9d27c49edcbccaea49bbbebb61193bdb77c003ebdf09899decc2eb5238c38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2703e81b3780d2e0112442c45753aec2e72e8e8e0efed13ebefc87f7c2b4ef60 [INFO] running `Command { std: "docker" "start" "-a" "2703e81b3780d2e0112442c45753aec2e72e8e8e0efed13ebefc87f7c2b4ef60", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/api.rs:1:7 [INFO] [stderr] | [INFO] [stderr] 1 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::net::SocketAddr` [INFO] [stderr] --> src/api.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::net::SocketAddr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::pin::Pin` [INFO] [stderr] --> src/api.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::pin::Pin; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `SocketAddressError` and `URLParseError` [INFO] [stderr] --> src/api.rs:66:5 [INFO] [stderr] | [INFO] [stderr] 66 | SocketAddressError, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | URLParseError, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/api.rs:371:27 [INFO] [stderr] | [INFO] [stderr] 371 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/api.rs:384:23 [INFO] [stderr] | [INFO] [stderr] 384 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/api.rs:727:23 [INFO] [stderr] | [INFO] [stderr] 727 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/api.rs:762:23 [INFO] [stderr] | [INFO] [stderr] 762 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:1:7 [INFO] [stderr] | [INFO] [stderr] 1 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:150:15 [INFO] [stderr] | [INFO] [stderr] 150 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:163:15 [INFO] [stderr] | [INFO] [stderr] 163 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:181:15 [INFO] [stderr] | [INFO] [stderr] 181 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:367:11 [INFO] [stderr] | [INFO] [stderr] 367 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:200:19 [INFO] [stderr] | [INFO] [stderr] 200 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:237:19 [INFO] [stderr] | [INFO] [stderr] 237 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:252:23 [INFO] [stderr] | [INFO] [stderr] 252 | #[cfg(not(backtrace))] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:277:19 [INFO] [stderr] | [INFO] [stderr] 277 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:291:23 [INFO] [stderr] | [INFO] [stderr] 291 | #[cfg(not(backtrace))] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:354:11 [INFO] [stderr] | [INFO] [stderr] 354 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/errors.rs:379:15 [INFO] [stderr] | [INFO] [stderr] 379 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unused import: `log::debug` [INFO] [stderr] --> src/requests.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use log::debug; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/websocket_lite.rs:1:7 [INFO] [stderr] | [INFO] [stderr] 1 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/websocket_lite.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::future::Future` [INFO] [stderr] --> src/websocket_lite.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::future::Future; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DerefMut` and `Index` [INFO] [stderr] --> src/websocket_lite.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | DerefMut, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 17 | Index, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `LockResult` [INFO] [stderr] --> src/websocket_lite.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | LockResult, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/websocket_lite.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `async_trait::async_trait` [INFO] [stderr] --> src/websocket_lite.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | use async_trait::async_trait; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `debug`, `error`, and `trace` [INFO] [stderr] --> src/websocket_lite.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | debug, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 39 | error, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 40 | trace, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `IntoUrl` [INFO] [stderr] --> src/websocket_lite.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | IntoUrl, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `URLParseError` and `WebsocketIOError` [INFO] [stderr] --> src/websocket_lite.rs:65:5 [INFO] [stderr] | [INFO] [stderr] 65 | URLParseError, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 66 | WebsocketIOError, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `UnexpectedEnd` [INFO] [stderr] --> src/websocket_lite.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | UnexpectedEnd, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/websocket_lite.rs:370:23 [INFO] [stderr] | [INFO] [stderr] 370 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/websocket_lite.rs:393:23 [INFO] [stderr] | [INFO] [stderr] 393 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `backtrace` [INFO] [stderr] --> src/websocket_lite.rs:485:23 [INFO] [stderr] | [INFO] [stderr] 485 | #[cfg(backtrace)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(backtrace)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(backtrace)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/requests.rs:235:13 [INFO] [stderr] | [INFO] [stderr] 235 | let req = request.try_clone().unwrap().build().unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/websocket_lite.rs:525:17 [INFO] [stderr] | [INFO] [stderr] 525 | let mut byte = stream.read_u8().await.ok()?; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Read` [INFO] [stderr] --> src/api.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::io::Read; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `AsyncRead` [INFO] [stderr] --> src/api.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | AsyncRead, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `AsyncWrite` [INFO] [stderr] --> src/api.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | AsyncWrite, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/errors.rs:293:21 [INFO] [stderr] | [INFO] [stderr] 293 | let mut text = format!( [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/errors.rs:373:13 [INFO] [stderr] | [INFO] [stderr] 373 | let mut text = format!( [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/websocket_lite.rs:112:32 [INFO] [stderr] | [INFO] [stderr] 112 | FrameLength::Short(mut bytes) => bytes.to_vec(), [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/websocket_lite.rs:113:33 [INFO] [stderr] | [INFO] [stderr] 113 | FrameLength::Medium(mut bytes) => bytes.to_vec(), [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/websocket_lite.rs:114:31 [INFO] [stderr] | [INFO] [stderr] 114 | FrameLength::Long(mut bytes) => bytes.to_vec(), [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/websocket_lite.rs:144:32 [INFO] [stderr] | [INFO] [stderr] 144 | .for_each(|(index, mut byte)| data.push(byte ^ mask[index % 4])); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/websocket_lite.rs:612:25 [INFO] [stderr] | [INFO] [stderr] 612 | Err(err) => { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/websocket_lite.rs:590:21 [INFO] [stderr] | [INFO] [stderr] 590 | let mut frame_buffer = ok_or_return_poll_poison!(self.frame_buffer.lock()); [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field `match_products` is never read [INFO] [stderr] --> src/api.rs:138:5 [INFO] [stderr] | [INFO] [stderr] 134 | pub struct SubscriptionBuilder { [INFO] [stderr] | ------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 138 | match_products: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `default_tls_stream` is never used [INFO] [stderr] --> src/api.rs:401:21 [INFO] [stderr] | [INFO] [stderr] 401 | pub(crate) async fn default_tls_stream(url: &str) -> TlsStream { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `coin_base_url` is never read [INFO] [stderr] --> src/api.rs:418:5 [INFO] [stderr] | [INFO] [stderr] 416 | pub struct CBProAPI { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 417 | pub client: Client, [INFO] [stderr] 418 | coin_base_url: Arc>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CBProAPI` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `OrderError` is never used [INFO] [stderr] --> src/errors.rs:75:10 [INFO] [stderr] | [INFO] [stderr] 75 | pub enum OrderError { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `final_flag` and `mask` are never read [INFO] [stderr] --> src/websocket_lite.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 74 | pub struct ParsedFrame { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 75 | final_flag: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 76 | mask: Option<[u8; 4]>, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Websocket` is never constructed [INFO] [stderr] --> src/websocket_lite.rs:422:5 [INFO] [stderr] | [INFO] [stderr] 420 | pub enum WebsocketState { [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] 421 | HTTP, [INFO] [stderr] 422 | Websocket, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new_no_sec` is never used [INFO] [stderr] --> src/websocket_lite.rs:438:19 [INFO] [stderr] | [INFO] [stderr] 437 | impl WebsocketStreamConnector { [INFO] [stderr] | ----------------------------- associated function in this implementation [INFO] [stderr] 438 | pub(crate) fn new_no_sec() -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `state` is never read [INFO] [stderr] --> src/websocket_lite.rs:559:5 [INFO] [stderr] | [INFO] [stderr] 553 | pub struct WebsocketStream [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 559 | state: Arc>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `take_buffer_lock` is never used [INFO] [stderr] --> src/websocket_lite.rs:567:8 [INFO] [stderr] | [INFO] [stderr] 563 | / impl WebsocketStream [INFO] [stderr] 564 | | where [INFO] [stderr] 565 | | T: AsyncIO, [INFO] [stderr] | |_______________- method in this implementation [INFO] [stderr] 566 | { [INFO] [stderr] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/websocket_lite.rs:567:25 [INFO] [stderr] | [INFO] [stderr] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 567 | fn take_buffer_lock(&mut self) -> Result>>, std::io::Error> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncRead` and `AsyncWrite` [INFO] [stderr] --> src/api.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | AsyncRead, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 22 | AsyncReadExt, [INFO] [stderr] 23 | AsyncWrite, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `res` [INFO] [stderr] --> src/lib.rs:1570:13 [INFO] [stderr] | [INFO] [stderr] 1570 | let res = SimpleLogger::new().with_level(LevelFilter::Debug).init(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stderr] [INFO] [stderr] warning: `coinbase_pro` (lib) generated 58 warnings (run `cargo fix --lib -p coinbase_pro` to apply 23 suggestions) [INFO] [stderr] warning: `coinbase_pro` (lib test) generated 58 warnings (56 duplicates) (run `cargo fix --lib -p coinbase_pro --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/coinbase_pro-fa50922503210b63) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test live_tests::heartbeat ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- live_tests::heartbeat stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'live_tests::heartbeat' (25) panicked at src/lib.rs:1576:51: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: WebsocketIOError { source: Custom { kind: Uncategorized, error: "failed to lookup address information: Temporary failure in name resolution" }, context: None } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x648c39c73df2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x648c39c73df2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x648c39c73df2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x648c39c73df2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x648c39c858cf - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x648c39c858cf - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x648c39c40543 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x648c39c40543 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x648c39c4ca92 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x648c39c5189f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x648c39c51731 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x648c39a10ffe - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x648c39a10ffe - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x648c39c51fee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x648c39c51fee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x648c39c51d0a - std::panicking::panic_handler::{{closure}}::h8b036a1b366643ac [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x648c39c4cbc9 - std::sys::backtrace::__rust_end_short_backtrace::h45affcfc0c830da8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x648c39c3458d - __rustc[9b67c8562bba447b]::rust_begin_unwind [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x648c39c90000 - core::panicking::panic_fmt::hc084f85b1e76c16d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x648c39c8f3a6 - core::result::unwrap_failed::hf926a4254073b4aa [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/result.rs:1852:5 [INFO] [stdout] 20: 0x648c399a9442 - core::result::Result::unwrap::h29afe4d740ad49ed [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/result.rs:1223:23 [INFO] [stdout] 21: 0x648c399a9442 - coinbase_pro::live_tests::heartbeat::{{closure}}::h8c64a927b8827c70 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:1576:51 [INFO] [stdout] 22: 0x648c399cde62 - as core::future::future::Future>::poll::hd0d79865aeb198f7 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/future/future.rs:133:9 [INFO] [stdout] 23: 0x648c399cde1d - as core::future::future::Future>::poll::hac60bc4dbbaa26af [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/future/future.rs:133:9 [INFO] [stdout] 24: 0x648c399b66fd - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::hab2deefc8627e1d8 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:742:70 [INFO] [stdout] 25: 0x648c399b649b - tokio::task::coop::with_budget::he9cd2feb98f7b82b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/coop/mod.rs:167:5 [INFO] [stdout] 26: 0x648c399b649b - tokio::task::coop::budget::ha94f0dc8611a7fbd [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/task/coop/mod.rs:133:5 [INFO] [stdout] 27: 0x648c399b649b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h735a4c1e9538deff [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:742:25 [INFO] [stdout] 28: 0x648c399b34d0 - tokio::runtime::scheduler::current_thread::Context::enter::h4d47f5b76d87322a [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:432:19 [INFO] [stdout] 29: 0x648c399b50dd - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h01849714b4cb7ada [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:741:44 [INFO] [stdout] 30: 0x648c399b4da4 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h1f44dfde4bcd9772 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:829:68 [INFO] [stdout] 31: 0x648c399d780b - tokio::runtime::context::scoped::Scoped::set::hf027cfd78bdb5aec [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 32: 0x648c399c6829 - tokio::runtime::context::set_scheduler::{{closure}}::hf65de653e14dad71 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/context.rs:176:38 [INFO] [stdout] 33: 0x648c399bcb02 - std::thread::local::LocalKey::try_with::h2fbd65e777fe4001 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/local.rs:315:12 [INFO] [stdout] 34: 0x648c399bc84e - std::thread::local::LocalKey::with::hacad071e5e3b7960 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/local.rs:279:20 [INFO] [stdout] 35: 0x648c399c675d - tokio::runtime::context::set_scheduler::h9496e5be56e71415 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/context.rs:176:17 [INFO] [stdout] 36: 0x648c399b4710 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h497ff2fdb7234213 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:829:27 [INFO] [stdout] 37: 0x648c399b4dc3 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h140487d892e5d5da [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:729:24 [INFO] [stdout] 38: 0x648c399b2d86 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h6e27f19d022c53df [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:200:33 [INFO] [stdout] 39: 0x648c399d7aa2 - tokio::runtime::context::runtime::enter_runtime::h5a7870551906f71d [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 40: 0x648c399b2b61 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::ha6a4c943564c2639 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/scheduler/current_thread/mod.rs:188:9 [INFO] [stdout] 41: 0x648c399e02ca - tokio::runtime::runtime::Runtime::block_on_inner::hb799175dd75b30c5 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/runtime.rs:356:52 [INFO] [stdout] 42: 0x648c399e048c - tokio::runtime::runtime::Runtime::block_on::h4ef003a0ad30ff6a [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/runtime.rs:330:18 [INFO] [stdout] 43: 0x648c399a8efc - coinbase_pro::live_tests::heartbeat::h298b3ce6538b38ef [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:1580:44 [INFO] [stdout] 44: 0x648c399a8f97 - coinbase_pro::live_tests::heartbeat::{{closure}}::h82a974bfe456bbf3 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:1569:29 [INFO] [stdout] 45: 0x648c399aad36 - core::ops::function::FnOnce::call_once::hbf55e5942bea34b2 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 46: 0x648c39a10dbb - core::ops::function::FnOnce::call_once::hdbf42be2a49fb464 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 47: 0x648c39a10dbb - test::__rust_begin_short_backtrace::h8ae08814d38cb356 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:663:18 [INFO] [stdout] 48: 0x648c39a268a5 - test::run_test_in_process::{{closure}}::h54574ee4f414d690 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:686:74 [INFO] [stdout] 49: 0x648c39a268a5 - as core::ops::function::FnOnce<()>>::call_once::h01a0b7e7aad1a501 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 50: 0x648c39a268a5 - std::panicking::catch_unwind::do_call::h23820e817c5612cd [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 51: 0x648c39a268a5 - std::panicking::catch_unwind::h89c73a1febce5587 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 52: 0x648c39a268a5 - std::panic::catch_unwind::h6f55caf410861914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 53: 0x648c39a268a5 - test::run_test_in_process::h4db851878e5d3983 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:686:27 [INFO] [stdout] 54: 0x648c39a268a5 - test::run_test::{{closure}}::h57e8c5acaceacd24 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:607:43 [INFO] [stdout] 55: 0x648c399fd294 - test::run_test::{{closure}}::he775ccc3a9d3b97e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:637:41 [INFO] [stdout] 56: 0x648c399fd294 - std::sys::backtrace::__rust_begin_short_backtrace::hcd94d85d7765225a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 57: 0x648c39a00ada - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha814de8393f07830 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 58: 0x648c39a00ada - as core::ops::function::FnOnce<()>>::call_once::h8deb00af0abdeaf1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 59: 0x648c39a00ada - std::panicking::catch_unwind::do_call::h1917979b0c279ea2 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 60: 0x648c39a00ada - std::panicking::catch_unwind::h791ad91fee6ce34e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 61: 0x648c39a00ada - std::panic::catch_unwind::h982b8f40ed9c3cce [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 62: 0x648c39a00ada - std::thread::Builder::spawn_unchecked_::{{closure}}::h545e54700c945db4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 63: 0x648c39a00ada - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb427481a5227d78a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 64: 0x648c39c46b4f - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 65: 0x648c39c46b4f - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 66: 0x7a70d6143aa4 - [INFO] [stdout] 67: 0x7a70d61d0a34 - clone [INFO] [stdout] 68: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] live_tests::heartbeat [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "2703e81b3780d2e0112442c45753aec2e72e8e8e0efed13ebefc87f7c2b4ef60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2703e81b3780d2e0112442c45753aec2e72e8e8e0efed13ebefc87f7c2b4ef60", kill_on_drop: false }` [INFO] [stdout] 2703e81b3780d2e0112442c45753aec2e72e8e8e0efed13ebefc87f7c2b4ef60