[INFO] cloning repository https://github.com/servufi/rust-cdp-starter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/servufi/rust-cdp-starter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fservufi%2Frust-cdp-starter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fservufi%2Frust-cdp-starter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 32a44fc4832b46ef79fdc469000cebc850890826 [INFO] checking servufi/rust-cdp-starter against master#2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fservufi%2Frust-cdp-starter" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/servufi/rust-cdp-starter [INFO] finished tweaking git repo https://github.com/servufi/rust-cdp-starter [INFO] tweaked toml for git repo https://github.com/servufi/rust-cdp-starter written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/servufi/rust-cdp-starter on toolchain 2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/servufi/rust-cdp-starter already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11686d044d77712c5a0c1c6e8e82c78c9eec2480a71615ef37442c11e0663a02 [INFO] running `Command { std: "docker" "start" "-a" "11686d044d77712c5a0c1c6e8e82c78c9eec2480a71615ef37442c11e0663a02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11686d044d77712c5a0c1c6e8e82c78c9eec2480a71615ef37442c11e0663a02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11686d044d77712c5a0c1c6e8e82c78c9eec2480a71615ef37442c11e0663a02", kill_on_drop: false }` [INFO] [stdout] 11686d044d77712c5a0c1c6e8e82c78c9eec2480a71615ef37442c11e0663a02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71a263095ef657cf686546ca9b85e346ba37ace2ce6ab65175938fe5b63f90a7 [INFO] running `Command { std: "docker" "start" "-a" "71a263095ef657cf686546ca9b85e346ba37ace2ce6ab65175938fe5b63f90a7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling cc v1.0.104 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking tinyvec v1.7.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking rustls-pki-types v1.7.0 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tungstenite v0.23.0 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.23.1 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking hyper-util v0.1.7 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.5 [INFO] [stderr] Checking rust-cdp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: static `DEBUG` is never used [INFO] [stdout] --> src/cdp/cdp.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | static DEBUG: bool = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CHROME_STDERR` is never used [INFO] [stdout] --> src/cdp/cdp.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | static CHROME_STDERR: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CDP_BROWSERS` is never used [INFO] [stdout] --> src/cdp/cdp.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | static CDP_BROWSERS: Lazy> = Lazy::new(|| Arc::new(CdpBrowsers::new())); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdpBrowsers` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct CdpBrowsers { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_profile`, `get_profile`, and `get_profile_name_by_port` are never used [INFO] [stdout] --> src/cdp/cdp.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl CdpBrowsers { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn add_profile( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub async fn get_profile(&self, profile_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub async fn get_profile_name_by_port(&self, port: u16) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrowserInfo` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct BrowserInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendPayload` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct SendPayload { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdpResponse` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CdpResponse { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_i32`, and `get_result` are never used [INFO] [stdout] --> src/cdp/cdp.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl CdpResponse { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 124 | pub fn new(value: Value) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn as_i32(&self, field: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn get_result(&self) -> Value { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cdp/cdp.rs:183:18 [INFO] [stdout] | [INFO] [stdout] 181 | impl CDP { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 182 | // New browser or tab [INFO] [stdout] 183 | pub async fn new(params: Option) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 456 | async fn setup_ctrlc_handler() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 503 | pub fn get_params(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | async fn connect_to_ws( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 627 | pub async fn send(&self, method: &str, params: Option) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | async fn enable_basic_features(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 698 | async fn inject_ws_handler_script(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 763 | async fn handle_invalid_params_error(&self, method: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 800 | async fn handle_method_not_found_error(&self, method: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 885 | fn format_parameter(&self, param: &Parameters) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 899 | async fn update_node_ids(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 912 | async fn handle_event(&self, method: &str, resp: &Value, profile_name: String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 951 | async fn handle_target_closed(&self, profile_name: String) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1027 | pub async fn broadcast_to_js(&self, message: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1031 | pub async fn text_content_by_xpath(&self, xpath: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1038 | pub fn target_id(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1042 | pub async fn find_node_id_by_xpath(&self, xpath: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1047 | pub async fn find_node_ids_by_xpath(&self, xpath: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_chrome` is never used [INFO] [stdout] --> src/cdp/cdp.rs:1142:10 [INFO] [stdout] | [INFO] [stdout] 1142 | async fn start_chrome( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_free_port` is never used [INFO] [stdout] --> src/cdp/cdp.rs:1214:10 [INFO] [stdout] | [INFO] [stdout] 1214 | async fn find_free_port() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CdpProtocol` is never used [INFO] [stdout] --> src/cdp/cdp_protocol.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type CdpProtocol = Protocol; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Protocol` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Protocol { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cdp/cdp_protocol.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Protocol { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> Protocol { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Version` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Version { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Domain` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Domain { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Type` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeProperties` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct TypeProperties { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Items` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Items { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Command` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandReturns` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct CommandReturns { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parameters` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct Parameters { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Event` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Event { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `clients` and `addr` are never read [INFO] [stdout] --> src/cdp/ws_server.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WebSocketServer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 12 | clients: Arc>>>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub addr: Arc, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebSocketServer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cdp/ws_server.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CallbackWrapper(pub Arc); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handle_client`, `broadcast`, and `addr` are never used [INFO] [stdout] --> src/cdp/ws_server.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 25 | impl WebSocketServer { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub async fn new(addr: String) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | async fn handle_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn broadcast(&self, message: Value) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn addr(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DEBUG` is never used [INFO] [stdout] --> src/cdp/cdp.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | static DEBUG: bool = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CHROME_STDERR` is never used [INFO] [stdout] --> src/cdp/cdp.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | static CHROME_STDERR: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CDP_BROWSERS` is never used [INFO] [stdout] --> src/cdp/cdp.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | static CDP_BROWSERS: Lazy> = Lazy::new(|| Arc::new(CdpBrowsers::new())); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdpBrowsers` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct CdpBrowsers { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_profile`, `get_profile`, and `get_profile_name_by_port` are never used [INFO] [stdout] --> src/cdp/cdp.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl CdpBrowsers { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn add_profile( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub async fn get_profile(&self, profile_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub async fn get_profile_name_by_port(&self, port: u16) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrowserInfo` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct BrowserInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendPayload` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct SendPayload { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdpResponse` is never constructed [INFO] [stdout] --> src/cdp/cdp.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CdpResponse { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_i32`, and `get_result` are never used [INFO] [stdout] --> src/cdp/cdp.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl CdpResponse { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 124 | pub fn new(value: Value) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn as_i32(&self, field: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn get_result(&self) -> Value { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cdp/cdp.rs:183:18 [INFO] [stdout] | [INFO] [stdout] 181 | impl CDP { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 182 | // New browser or tab [INFO] [stdout] 183 | pub async fn new(params: Option) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 456 | async fn setup_ctrlc_handler() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 503 | pub fn get_params(&self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | async fn connect_to_ws( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 627 | pub async fn send(&self, method: &str, params: Option) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | async fn enable_basic_features(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 698 | async fn inject_ws_handler_script(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 763 | async fn handle_invalid_params_error(&self, method: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 800 | async fn handle_method_not_found_error(&self, method: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 885 | fn format_parameter(&self, param: &Parameters) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 899 | async fn update_node_ids(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 912 | async fn handle_event(&self, method: &str, resp: &Value, profile_name: String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 951 | async fn handle_target_closed(&self, profile_name: String) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1027 | pub async fn broadcast_to_js(&self, message: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1031 | pub async fn text_content_by_xpath(&self, xpath: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1038 | pub fn target_id(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1042 | pub async fn find_node_id_by_xpath(&self, xpath: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1047 | pub async fn find_node_ids_by_xpath(&self, xpath: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_chrome` is never used [INFO] [stdout] --> src/cdp/cdp.rs:1142:10 [INFO] [stdout] | [INFO] [stdout] 1142 | async fn start_chrome( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_free_port` is never used [INFO] [stdout] --> src/cdp/cdp.rs:1214:10 [INFO] [stdout] | [INFO] [stdout] 1214 | async fn find_free_port() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CdpProtocol` is never used [INFO] [stdout] --> src/cdp/cdp_protocol.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type CdpProtocol = Protocol; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Protocol` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Protocol { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cdp/cdp_protocol.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Protocol { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> Protocol { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Version` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Version { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Domain` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Domain { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Type` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TypeProperties` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct TypeProperties { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Items` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Items { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Command` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommandReturns` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct CommandReturns { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parameters` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct Parameters { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Event` is never constructed [INFO] [stdout] --> src/cdp/cdp_protocol.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Event { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `clients` and `addr` are never read [INFO] [stdout] --> src/cdp/ws_server.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WebSocketServer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 12 | clients: Arc>>>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub addr: Arc, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebSocketServer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cdp/ws_server.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CallbackWrapper(pub Arc); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `handle_client`, `broadcast`, and `addr` are never used [INFO] [stdout] --> src/cdp/ws_server.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 25 | impl WebSocketServer { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 26 | pub async fn new(addr: String) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | async fn handle_client( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn broadcast(&self, message: Value) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn addr(&self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.35s [INFO] running `Command { std: "docker" "inspect" "71a263095ef657cf686546ca9b85e346ba37ace2ce6ab65175938fe5b63f90a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71a263095ef657cf686546ca9b85e346ba37ace2ce6ab65175938fe5b63f90a7", kill_on_drop: false }` [INFO] [stdout] 71a263095ef657cf686546ca9b85e346ba37ace2ce6ab65175938fe5b63f90a7