[INFO] fetching crate product-os-proxy 0.0.17...
[INFO] testing product-os-proxy-0.0.17 against beta-2025-09-21 for beta-1.91-3
[INFO] extracting crate product-os-proxy 0.0.17 into /workspace/builds/worker-5-tc2/source
[INFO] started tweaking crates.io crate product-os-proxy 0.0.17
[INFO] finished tweaking crates.io crate product-os-proxy 0.0.17
[INFO] tweaked toml for crates.io crate product-os-proxy 0.0.17 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate product-os-proxy 0.0.17 on toolchain beta-2025-09-21
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate product-os-proxy 0.0.17 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" "+beta-2025-09-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d530c1c2162d624ee1f85f479c9cdb3265c5ae9cc2aa9325d0860c0bcc4d34b1
[INFO] running `Command { std: "docker" "start" "-a" "d530c1c2162d624ee1f85f479c9cdb3265c5ae9cc2aa9325d0860c0bcc4d34b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d530c1c2162d624ee1f85f479c9cdb3265c5ae9cc2aa9325d0860c0bcc4d34b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d530c1c2162d624ee1f85f479c9cdb3265c5ae9cc2aa9325d0860c0bcc4d34b1", kill_on_drop: false }`
[INFO] [stdout] d530c1c2162d624ee1f85f479c9cdb3265c5ae9cc2aa9325d0860c0bcc4d34b1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9bbdee9ff3e7c7829d85d27084b60798b89f021317d2b7db9cc427898023158b
[INFO] running `Command { std: "docker" "start" "-a" "9bbdee9ff3e7c7829d85d27084b60798b89f021317d2b7db9cc427898023158b", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling smallvec v1.15.0
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling socket2 v0.5.9
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling hashbrown v0.15.3
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]    Compiling cc v1.2.21
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling rustls v0.23.26
[INFO] [stderr]    Compiling getrandom v0.3.2
[INFO] [stderr]    Compiling icu_locid_transform_data v1.5.1
[INFO] [stderr]    Compiling time-macros v0.2.22
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]    Compiling icu_properties_data v1.5.1
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling icu_normalizer_data v1.5.1
[INFO] [stderr]    Compiling no-std-compat v0.4.1
[INFO] [stderr]    Compiling core-error v0.0.1-rc4
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling webpki-roots v0.26.10
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling data-encoding v2.9.0
[INFO] [stderr]    Compiling time v0.3.41
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]    Compiling miniz_oxide v0.8.8
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]    Compiling openssl-sys v0.9.108
[INFO] [stderr]    Compiling axum-core v0.5.2
[INFO] [stderr]    Compiling brotli-decompressor v5.0.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling multer v3.1.0
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling regex-syntax v0.8.5
[INFO] [stderr]    Compiling rand v0.9.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling document-features v0.2.11
[INFO] [stderr]    Compiling brotli v8.0.0
[INFO] [stderr]    Compiling flate2 v1.1.1
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling product-os-http v0.0.8
[INFO] [stderr]    Compiling openssl v0.10.72
[INFO] [stderr]    Compiling matchit v0.8.4
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling rustls-webpki v0.103.1
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio v1.44.2
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.7.5
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling zerovec-derive v0.10.3
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.7.5
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling icu_provider_macros v1.5.0
[INFO] [stderr]    Compiling zerovec v0.10.4
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling tinystr v0.7.6
[INFO] [stderr]    Compiling icu_collections v1.5.0
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling icu_locid v1.5.0
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling icu_provider v1.5.0
[INFO] [stderr]    Compiling icu_locid_transform v1.5.0
[INFO] [stderr]    Compiling tokio-util v0.7.15
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling h2 v0.4.9
[INFO] [stderr]    Compiling zstd v0.13.3
[INFO] [stderr]    Compiling icu_properties v1.5.1
[INFO] [stderr]    Compiling async-compression v0.4.23
[INFO] [stderr]    Compiling tokio-rustls v0.26.2
[INFO] [stderr]    Compiling tungstenite v0.26.2
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling serde_path_to_error v0.1.17
[INFO] [stderr]    Compiling tokio-tungstenite v0.26.2
[INFO] [stderr]    Compiling serde_html_form v0.2.7
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling fiat-crypto v0.2.9
[INFO] [stderr]    Compiling ioslice v0.6.0
[INFO] [stderr]    Compiling base64ct v1.7.3
[INFO] [stderr]    Compiling icu_normalizer v1.5.0
[INFO] [stderr]    Compiling jwt-compact v0.8.0
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling product-os-random v0.0.27
[INFO] [stderr]    Compiling asn1-rs-derive v0.5.1
[INFO] [stderr]    Compiling idna_adapter v1.2.0
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling publicsuffix v2.3.0
[INFO] [stderr]    Compiling asn1-rs-impl v0.2.0
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling rusticata-macros v4.1.0
[INFO] [stderr]    Compiling cookie_store v0.21.1
[INFO] [stderr]    Compiling no-std-net v0.6.0
[INFO] [stderr]    Compiling product-os-net v0.0.1
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling asn1-rs v0.6.2
[INFO] [stderr]    Compiling serde_with v3.12.0
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling hyper v1.6.0
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling dns-lookup v2.0.4
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling xml-rs v0.8.26
[INFO] [stderr]    Compiling oid-registry v0.7.1
[INFO] [stderr]    Compiling mopa v0.2.2
[INFO] [stderr]    Compiling hyper-util v0.1.11
[INFO] [stderr]    Compiling product-os-http-body v0.0.23
[INFO] [stderr]    Compiling product-os-async-executor v0.0.17
[INFO] [stderr]    Compiling event-listener v5.4.0
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling product-os-openapi v0.0.4
[INFO] [stderr]    Compiling portable-atomic v1.11.0
[INFO] [stderr]    Compiling tracing-subscriber v0.3.19
[INFO] [stderr]    Compiling event-listener-strategy v0.5.4
[INFO] [stderr]    Compiling moka v0.12.10
[INFO] [stderr]    Compiling async-lock v3.4.0
[INFO] [stderr]    Compiling hyper-rustls v0.27.5
[INFO] [stderr]    Compiling axum v0.8.4
[INFO] [stderr]    Compiling der-parser v9.0.0
[INFO] [stderr]    Compiling reqwest v0.12.15
[INFO] [stderr]    Compiling orion v0.17.10
[INFO] [stderr]    Compiling axum-macros v0.5.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling yasna v0.5.2
[INFO] [stderr]    Compiling pem v3.0.5
[INFO] [stderr]    Compiling x509-parser v0.16.0
[INFO] [stderr]    Compiling uuid v1.16.0
[INFO] [stderr]    Compiling csv-core v0.1.12
[INFO] [stderr]    Compiling tagptr v0.2.0
[INFO] [stderr]    Compiling csv v1.3.1
[INFO] [stderr]    Compiling hyper-tungstenite v0.17.0
[INFO] [stderr]    Compiling tokio-graceful v0.2.2
[INFO] [stderr]    Compiling product-os-request v0.0.47
[INFO] [stderr]    Compiling product-os-security v0.0.56
[INFO] [stderr]    Compiling product-os-utilities v0.0.23
[INFO] [stderr]    Compiling rcgen v0.13.2
[INFO] [stderr]    Compiling bstr v1.12.0
[INFO] [stderr]    Compiling webpki v0.22.4
[INFO] [stderr]    Compiling axum-extra v0.10.1
[INFO] [stderr]    Compiling product-os-router v0.0.35
[INFO] [stderr]    Compiling product-os-capabilities v0.0.19
[INFO] [stderr]    Compiling product-os-connector v0.0.25
[INFO] [stderr]    Compiling product-os-configuration v0.0.35
[INFO] [stderr]    Compiling product-os-server v0.0.42
[INFO] [stderr]    Compiling product-os-proxy v0.0.17 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `NetworkProxyCertificateAuthorityFiles`
[INFO] [stdout]  --> src/lib.rs:5:56
[INFO] [stdout]   |
[INFO] [stdout] 5 | use product_os_configuration::{Configuration, Network, NetworkProxyCertificateAuthorityFiles, TunnelType};
[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: `product_os_utilities::ProductOSError`
[INFO] [stdout]   --> src/lib.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use product_os_utilities::ProductOSError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::mitm::certificate_authority::RcgenAuthority`
[INFO] [stdout]   --> src/lib.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::mitm::certificate_authority::RcgenAuthority;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpHandler` and `ProxyBuilder`
[INFO] [stdout]   --> src/lib.rs:13:19
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::mitm::{HttpHandler, ProxyBuilder};
[INFO] [stdout]    |                   ^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::mitm::rustls::crypto::CryptoProvider`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::mitm::rustls::crypto::CryptoProvider;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rustls`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:1:117
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::mitm::{certificate_authority::CertificateAuthority, HttpContext, HttpHandler, RequestOrResponse, Rewind, rustls, WebSocketCont...
[INFO] [stdout]   |                                                                                                                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TryStreamExt`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:2:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | use futures::{Sink, SinkExt, Stream, StreamExt, TryStreamExt, FutureExt};
[INFO] [stdout]   |                                                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpConnector` and `server`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:6:28
[INFO] [stdout]    |
[INFO] [stdout]  6 |         connect::{Connect, HttpConnector},
[INFO] [stdout]    |                            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 10 |     server
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BodyError`, `Body`, and `StreamBody`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Body, BodyExt, BodyBytes, Full, BodyError, StreamBody
[INFO] [stdout]    |     ^^^^                            ^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ProductOSRequestClient`, `ProductOSRequestError`, `ProductOSRequest`, `ProductOSRequester`, and `ProductOSResponse`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:20:43
[INFO] [stdout]    |
[INFO] [stdout] 20 | ...roductOSClient, ProductOSRequest, ProductOSRequestClient, ProductOSRequester, ProductOSRequestError, ProductOSResponse};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `product_os_server::RequestParts`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use product_os_server::RequestParts;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Frame`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:32:19
[INFO] [stdout]    |
[INFO] [stdout] 32 | use hyper::body::{Frame, Incoming};
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HyperWebsocketStream` and `HyperWebsocket`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | use hyper_tungstenite::{ HyperWebsocket, HyperWebsocketStream };
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_tungstenite::tungstenite::Error`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | use hyper_tungstenite::tungstenite::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_tungstenite::tungstenite::error::ProtocolError`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | use hyper_tungstenite::tungstenite::error::ProtocolError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Role` and `WebSocketConfig`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:40:48
[INFO] [stdout]    |
[INFO] [stdout] 40 | use hyper_tungstenite::tungstenite::protocol::{Role, WebSocketConfig};
[INFO] [stdout]    |                                                ^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:44:10
[INFO] [stdout]    |
[INFO] [stdout] 44 |     io::{AsyncRead, AsyncReadExt, AsyncWrite},
[INFO] [stdout]    |          ^^^^^^^^^                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper::http::uri::Port`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 | use hyper::http::uri::Port;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CertificateDer`, `ServerName`, and `UnixTime`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 60 | use rustls_pki_types::{CertificateDer, ServerName, UnixTime};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HandshakeSignatureValid`, `ServerCertVerified`, and `ServerCertVerifier`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:63:43
[INFO] [stdout]    |
[INFO] [stdout] 63 | use crate::mitm::rustls::client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier};
[INFO] [stdout]    |                                           ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DigitallySignedStruct` and `SignatureScheme`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:64:27
[INFO] [stdout]    |
[INFO] [stdout] 64 | use crate::mitm::rustls::{DigitallySignedStruct, SignatureScheme};
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CertificateAuthority`, `HttpHandler`, `WebSocketHandler`, and `mitm`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:3:9
[INFO] [stdout]    |
[INFO] [stdout]  3 |         HttpHandler, Proxy, WebSocketHandler, rustls,
[INFO] [stdout]    |         ^^^^^^^^^^^         ^^^^^^^^^^^^^^^^
[INFO] [stdout]  4 |         certificate_authority::{
[INFO] [stdout]  5 |             RcgenAuthority, CertificateAuthority
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     }, mitm, ProxyMiddleware
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DnsName`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:20:25
[INFO] [stdout]    |
[INFO] [stdout] 20 | use rustls_pki_types::{ DnsName, IpAddr, CertificateDer, ServerName, UnixTime, Ipv4Addr, Ipv6Addr };
[INFO] [stdout]    |                         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Certificate`, `Error`, and `KeyPair`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 | use rcgen::{Certificate, Error, KeyPair};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Connect` and `server::conn::auto::Builder`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:34:19
[INFO] [stdout]    |
[INFO] [stdout] 34 |         connect::{Connect, HttpConnector},
[INFO] [stdout]    |                   ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     server::conn::auto::Builder,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Future`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:45:23
[INFO] [stdout]    |
[INFO] [stdout] 45 |     future::{pending, Future, Pending},
[INFO] [stdout]    |                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Formatter`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:47:23
[INFO] [stdout]    |
[INFO] [stdout] 47 | use std::fmt::{Debug, Formatter};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_rustls::ConfigBuilderExt`
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:181:13
[INFO] [stdout]     |
[INFO] [stdout] 181 |         use hyper_rustls::ConfigBuilderExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server::conn::auto`
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 |     server::conn::auto,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BodyBytes as Body`
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:31:28
[INFO] [stdout]    |
[INFO] [stdout] 31 | use product_os_http_body::{BodyBytes as Body, BodyBytes};
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::Infallible`
[INFO] [stdout]  --> src/mitm/mod.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::convert::Infallible;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/mitm/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bytes::Bytes`
[INFO] [stdout]   --> src/mitm/mod.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use bytes::Bytes;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HeaderName`, `HeaderValue`, and `InvalidHeaderName`
[INFO] [stdout]   --> src/mitm/mod.rs:21:21
[INFO] [stdout]    |
[INFO] [stdout] 21 | use hyper::header::{HeaderName, HeaderValue, InvalidHeaderName};
[INFO] [stdout]    |                     ^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `product_os_http::HeaderMap`
[INFO] [stdout]   --> src/mitm/mod.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use product_os_http::HeaderMap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BodyBytes` and `BodyError`
[INFO] [stdout]   --> src/mitm/mod.rs:23:47
[INFO] [stdout]    |
[INFO] [stdout] 23 | use product_os_http_body::{BodyBytes as Body, BodyBytes, BodyError};
[INFO] [stdout]    |                                               ^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decode_request` and `decode_response`
[INFO] [stdout]   --> src/mitm/mod.rs:30:19
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub use decoder::{decode_request, decode_response};
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `res` is never read
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:198:21
[INFO] [stdout]     |
[INFO] [stdout] 198 |             let mut res = Response::new(BodyBytes::empty());
[INFO] [stdout]     |                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:249:49
[INFO] [stdout]     |
[INFO] [stdout] 249 | ...                   Err(e) => {
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:254:41
[INFO] [stdout]     |
[INFO] [stdout] 254 | ...                   Err(e) => Response::builder().status(StatusCode::INTERNAL_SERVER_ERROR).body(BodyBytes::empty()).unwrap()
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:257:33
[INFO] [stdout]     |
[INFO] [stdout] 257 | ...                   Err(e) => Response::builder().status(StatusCode::INTERNAL_SERVER_ERROR).body(BodyBytes::empty()).unwrap()
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:138:13
[INFO] [stdout]     |
[INFO] [stdout] 138 |         let mut req = match self
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:209:32
[INFO] [stdout]     |
[INFO] [stdout] 209 | ...                   Ok(mut response) => {
[INFO] [stdout]     |                          ----^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:389:13
[INFO] [stdout]     |
[INFO] [stdout] 389 |         let path = uri.path();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `authority`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:390:13
[INFO] [stdout]     |
[INFO] [stdout] 390 |         let authority = match uri.authority() {
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:401:21
[INFO] [stdout]     |
[INFO] [stdout] 401 |                 let mut bytes_read = match upgraded.read(&mut buffer).await {
[INFO] [stdout]     |                     ----^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `scheme`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:620:47
[INFO] [stdout]     |
[INFO] [stdout] 620 |     async fn serve_stream<I>(self, stream: I, scheme: Scheme, authority: Authority) -> Result<(), Box<dyn std::error::Error + Send + Sync>>
[INFO] [stdout]     |                                               ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scheme`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `authority`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:620:63
[INFO] [stdout]     |
[INFO] [stdout] 620 |     async fn serve_stream<I>(self, stream: I, scheme: Scheme, authority: Authority) -> Result<(), Box<dyn std::error::Error + Send + Sync>>
[INFO] [stdout]     |                                                               ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FutureExt`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:2:63
[INFO] [stdout]   |
[INFO] [stdout] 2 | use futures::{Sink, SinkExt, Stream, StreamExt, TryStreamExt, FutureExt};
[INFO] [stdout]   |                                                               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bstr::ByteSlice`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | use bstr::ByteSlice;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:673:25
[INFO] [stdout]     |
[INFO] [stdout] 673 | fn normalize_request<T>(mut req: Request<T>) -> Request<T> {
[INFO] [stdout]     |                         ----^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:158:21
[INFO] [stdout]     |
[INFO] [stdout] 158 |                     _ => self.certifier.verify_server_cert(end_entity, intermediates, server_name, ocsp_response, now)
[INFO] [stdout]     |                     ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:158:21
[INFO] [stdout]     |
[INFO] [stdout] 142 |                     IpAddr::V4(ip) => {
[INFO] [stdout]     |                     -------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 150 |                     IpAddr::V6(ip) => {
[INFO] [stdout]     |                     -------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 158 |                     _ => self.certifier.verify_server_cert(end_entity, intermediates, server_name, ocsp_response, now)
[INFO] [stdout]     |                     ^ collectively making this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]    --> src/proxy_middleware.rs:102:28
[INFO] [stdout]     |
[INFO] [stdout] 102 |     async fn before(&self, request: Request<Body>) -> BeforeResult {
[INFO] [stdout]     |                            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:106:27
[INFO] [stdout]     |
[INFO] [stdout] 106 |     async fn after(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                           ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:106:53
[INFO] [stdout]     |
[INFO] [stdout] 106 |     async fn after(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:110:29
[INFO] [stdout]     |
[INFO] [stdout] 110 |     async fn success(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:110:55
[INFO] [stdout]     |
[INFO] [stdout] 110 |     async fn success(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:114:29
[INFO] [stdout]     |
[INFO] [stdout] 114 |     async fn failure(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:114:55
[INFO] [stdout]     |
[INFO] [stdout] 114 |     async fn failure(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]    --> src/proxy_middleware.rs:122:48
[INFO] [stdout]     |
[INFO] [stdout] 122 |     async fn before_product_os_response(&self, request: Request<Body>) -> BeforeResult {
[INFO] [stdout]     |                                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:126:47
[INFO] [stdout]     |
[INFO] [stdout] 126 |     async fn after_product_os_response(&self, response: ProductOSResponse<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                               ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:126:82
[INFO] [stdout]     |
[INFO] [stdout] 126 |     async fn after_product_os_response(&self, response: ProductOSResponse<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                                                  ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `service`
[INFO] [stdout]    --> src/lib.rs:179:30
[INFO] [stdout]     |
[INFO] [stdout] 179 |     async fn register(&self, service: Arc<dyn Service>) -> RegistryService {
[INFO] [stdout]     |                              ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IoStream` is never constructed
[INFO] [stdout]   --> src/mitm/decoder.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct IoStream<T>(T);
[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 `decode` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:38:4
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn decode(
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Body` and `Decoder` are never constructed
[INFO] [stdout]   --> src/mitm/decoder.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | enum Decoder<T> {
[INFO] [stdout]    |      ------- variants in this enum
[INFO] [stdout] 52 |     Body(T),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 53 |     Decoder(Box<dyn AsyncRead + Send + Sync + Unpin>),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `decode` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:57:12
[INFO] [stdout]    |
[INFO] [stdout] 56 | impl Decoder<Body> {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] 57 |     pub fn decode(self, encoding: &[u8]) -> Result<Self, Error> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_encodings` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:78:4
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn extract_encodings(headers: &HeaderMap<HeaderValue>) -> impl Iterator<Item = &[u8]> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decode_body` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:86:4
[INFO] [stdout]    |
[INFO] [stdout] 86 | fn decode_body<'a>(
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decode_request` is never used
[INFO] [stdout]    --> src/mitm/decoder.rs:132:8
[INFO] [stdout]     |
[INFO] [stdout] 132 | pub fn decode_request(mut req: Request<Body>) -> Result<Request<Body>, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decode_response` is never used
[INFO] [stdout]    --> src/mitm/decoder.rs:186:8
[INFO] [stdout]     |
[INFO] [stdout] 186 | pub fn decode_response(mut res: Response<Body>) -> Result<Response<Body>, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `certificates` is never read
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub struct Proxy<C, CA, H, W, F> {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 48 |     certificates: product_os_security::certificates::Certificates,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `http_builder` is never used
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 61 | impl Proxy<(), RcgenAuthority, ProxyMiddleware, ProxyMiddleware, Pending<()>> {
[INFO] [stdout]    | ----------------------------------------------------------------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub fn http_builder() -> ProxyBuilder<HttpConnector, RcgenAuthority, ProxyMiddleware, ProxyMiddleware, Pending<()>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CustomCertVerifier` is never constructed
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:699:12
[INFO] [stdout]     |
[INFO] [stdout] 699 | pub struct CustomCertVerifier {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:704:12
[INFO] [stdout]     |
[INFO] [stdout] 703 | impl CustomCertVerifier {
[INFO] [stdout]     | ----------------------- associated function in this implementation
[INFO] [stdout] 704 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Listener` is never constructed
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 53 | pub(crate) enum AddrOrListener {
[INFO] [stdout]    |                 -------------- variant in this enum
[INFO] [stdout] 54 |     Addr(SocketAddr),
[INFO] [stdout] 55 |     Listener(TcpListener),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AddrOrListener` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `use_http_client` is never used
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:82:12
[INFO] [stdout]    |
[INFO] [stdout] 81 | impl<CA, H, W, F> ProxyBuilder<HttpConnector, CA, H, W, F> {
[INFO] [stdout]    | ---------------------------------------------------------- method in this implementation
[INFO] [stdout] 82 |     pub fn use_http_client(self) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `use_websocket_handler` is never used
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 284 | impl<C, CA, F> ProxyBuilder<C, CA, ProxyMiddleware, ProxyMiddleware, F> {
[INFO] [stdout]     | ----------------------------------------------------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 304 |     pub fn use_websocket_handler(self, websocket_handler: ProxyMiddleware) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `use_listener`, `use_custom_websocket_connector`, and `use_custom_client` are never used
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:353:12
[INFO] [stdout]     |
[INFO] [stdout] 333 | impl<C, CA, H, W, F> ProxyBuilder<C, CA, H, W, F> {
[INFO] [stdout]     | ------------------------------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 353 |     pub fn use_listener(self, listener: TcpListener) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn use_custom_websocket_connector(self, connector: Connector) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 429 |     pub fn use_custom_client(self, client: Client<C, BodyBytes>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 39s
[INFO] running `Command { std: "docker" "inspect" "9bbdee9ff3e7c7829d85d27084b60798b89f021317d2b7db9cc427898023158b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9bbdee9ff3e7c7829d85d27084b60798b89f021317d2b7db9cc427898023158b", kill_on_drop: false }`
[INFO] [stdout] 9bbdee9ff3e7c7829d85d27084b60798b89f021317d2b7db9cc427898023158b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 385e2e073ed445018da797a7b15775a50d2865c136e3b3e38a6ab2aa638b3f68
[INFO] running `Command { std: "docker" "start" "-a" "385e2e073ed445018da797a7b15775a50d2865c136e3b3e38a6ab2aa638b3f68", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `NetworkProxyCertificateAuthorityFiles`
[INFO] [stdout]  --> src/lib.rs:5:56
[INFO] [stdout]   |
[INFO] [stdout] 5 | use product_os_configuration::{Configuration, Network, NetworkProxyCertificateAuthorityFiles, TunnelType};
[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: `product_os_utilities::ProductOSError`
[INFO] [stdout]   --> src/lib.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use product_os_utilities::ProductOSError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::mitm::certificate_authority::RcgenAuthority`
[INFO] [stdout]   --> src/lib.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::mitm::certificate_authority::RcgenAuthority;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpHandler` and `ProxyBuilder`
[INFO] [stdout]   --> src/lib.rs:13:19
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::mitm::{HttpHandler, ProxyBuilder};
[INFO] [stdout]    |                   ^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::mitm::rustls::crypto::CryptoProvider`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::mitm::rustls::crypto::CryptoProvider;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rustls`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:1:117
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::mitm::{certificate_authority::CertificateAuthority, HttpContext, HttpHandler, RequestOrResponse, Rewind, rustls, WebSocketCont...
[INFO] [stdout]   |                                                                                                                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TryStreamExt`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:2:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | use futures::{Sink, SinkExt, Stream, StreamExt, TryStreamExt, FutureExt};
[INFO] [stdout]   |                                                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpConnector` and `server`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:6:28
[INFO] [stdout]    |
[INFO] [stdout]  6 |         connect::{Connect, HttpConnector},
[INFO] [stdout]    |                            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 10 |     server
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BodyError`, `Body`, and `StreamBody`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Body, BodyExt, BodyBytes, Full, BodyError, StreamBody
[INFO] [stdout]    |     ^^^^                            ^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ProductOSRequestClient`, `ProductOSRequestError`, `ProductOSRequest`, `ProductOSRequester`, and `ProductOSResponse`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:20:43
[INFO] [stdout]    |
[INFO] [stdout] 20 | ...roductOSClient, ProductOSRequest, ProductOSRequestClient, ProductOSRequester, ProductOSRequestError, ProductOSResponse};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `product_os_server::RequestParts`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use product_os_server::RequestParts;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Frame`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:32:19
[INFO] [stdout]    |
[INFO] [stdout] 32 | use hyper::body::{Frame, Incoming};
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HyperWebsocketStream` and `HyperWebsocket`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | use hyper_tungstenite::{ HyperWebsocket, HyperWebsocketStream };
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_tungstenite::tungstenite::Error`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | use hyper_tungstenite::tungstenite::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_tungstenite::tungstenite::error::ProtocolError`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | use hyper_tungstenite::tungstenite::error::ProtocolError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Role` and `WebSocketConfig`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:40:48
[INFO] [stdout]    |
[INFO] [stdout] 40 | use hyper_tungstenite::tungstenite::protocol::{Role, WebSocketConfig};
[INFO] [stdout]    |                                                ^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:44:10
[INFO] [stdout]    |
[INFO] [stdout] 44 |     io::{AsyncRead, AsyncReadExt, AsyncWrite},
[INFO] [stdout]    |          ^^^^^^^^^                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper::http::uri::Port`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 | use hyper::http::uri::Port;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CertificateDer`, `ServerName`, and `UnixTime`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 60 | use rustls_pki_types::{CertificateDer, ServerName, UnixTime};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HandshakeSignatureValid`, `ServerCertVerified`, and `ServerCertVerifier`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:63:43
[INFO] [stdout]    |
[INFO] [stdout] 63 | use crate::mitm::rustls::client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier};
[INFO] [stdout]    |                                           ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DigitallySignedStruct` and `SignatureScheme`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:64:27
[INFO] [stdout]    |
[INFO] [stdout] 64 | use crate::mitm::rustls::{DigitallySignedStruct, SignatureScheme};
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CertificateAuthority`, `HttpHandler`, `WebSocketHandler`, and `mitm`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:3:9
[INFO] [stdout]    |
[INFO] [stdout]  3 |         HttpHandler, Proxy, WebSocketHandler, rustls,
[INFO] [stdout]    |         ^^^^^^^^^^^         ^^^^^^^^^^^^^^^^
[INFO] [stdout]  4 |         certificate_authority::{
[INFO] [stdout]  5 |             RcgenAuthority, CertificateAuthority
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     }, mitm, ProxyMiddleware
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DnsName`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:20:25
[INFO] [stdout]    |
[INFO] [stdout] 20 | use rustls_pki_types::{ DnsName, IpAddr, CertificateDer, ServerName, UnixTime, Ipv4Addr, Ipv6Addr };
[INFO] [stdout]    |                         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Certificate`, `Error`, and `KeyPair`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 | use rcgen::{Certificate, Error, KeyPair};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Connect` and `server::conn::auto::Builder`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:34:19
[INFO] [stdout]    |
[INFO] [stdout] 34 |         connect::{Connect, HttpConnector},
[INFO] [stdout]    |                   ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     server::conn::auto::Builder,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Future`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:45:23
[INFO] [stdout]    |
[INFO] [stdout] 45 |     future::{pending, Future, Pending},
[INFO] [stdout]    |                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Formatter`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:47:23
[INFO] [stdout]    |
[INFO] [stdout] 47 | use std::fmt::{Debug, Formatter};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_rustls::ConfigBuilderExt`
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:181:13
[INFO] [stdout]     |
[INFO] [stdout] 181 |         use hyper_rustls::ConfigBuilderExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server::conn::auto`
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 |     server::conn::auto,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BodyBytes as Body`
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:31:28
[INFO] [stdout]    |
[INFO] [stdout] 31 | use product_os_http_body::{BodyBytes as Body, BodyBytes};
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::Infallible`
[INFO] [stdout]  --> src/mitm/mod.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::convert::Infallible;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/mitm/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bytes::Bytes`
[INFO] [stdout]   --> src/mitm/mod.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use bytes::Bytes;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HeaderName`, `HeaderValue`, and `InvalidHeaderName`
[INFO] [stdout]   --> src/mitm/mod.rs:21:21
[INFO] [stdout]    |
[INFO] [stdout] 21 | use hyper::header::{HeaderName, HeaderValue, InvalidHeaderName};
[INFO] [stdout]    |                     ^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `product_os_http::HeaderMap`
[INFO] [stdout]   --> src/mitm/mod.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use product_os_http::HeaderMap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BodyBytes` and `BodyError`
[INFO] [stdout]   --> src/mitm/mod.rs:23:47
[INFO] [stdout]    |
[INFO] [stdout] 23 | use product_os_http_body::{BodyBytes as Body, BodyBytes, BodyError};
[INFO] [stdout]    |                                               ^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decode_request` and `decode_response`
[INFO] [stdout]   --> src/mitm/mod.rs:30:19
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub use decoder::{decode_request, decode_response};
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `res` is never read
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:198:21
[INFO] [stdout]     |
[INFO] [stdout] 198 |             let mut res = Response::new(BodyBytes::empty());
[INFO] [stdout]     |                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:249:49
[INFO] [stdout]     |
[INFO] [stdout] 249 | ...                   Err(e) => {
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:254:41
[INFO] [stdout]     |
[INFO] [stdout] 254 | ...                   Err(e) => Response::builder().status(StatusCode::INTERNAL_SERVER_ERROR).body(BodyBytes::empty()).unwrap()
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:257:33
[INFO] [stdout]     |
[INFO] [stdout] 257 | ...                   Err(e) => Response::builder().status(StatusCode::INTERNAL_SERVER_ERROR).body(BodyBytes::empty()).unwrap()
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:138:13
[INFO] [stdout]     |
[INFO] [stdout] 138 |         let mut req = match self
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:209:32
[INFO] [stdout]     |
[INFO] [stdout] 209 | ...                   Ok(mut response) => {
[INFO] [stdout]     |                          ----^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:389:13
[INFO] [stdout]     |
[INFO] [stdout] 389 |         let path = uri.path();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `authority`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:390:13
[INFO] [stdout]     |
[INFO] [stdout] 390 |         let authority = match uri.authority() {
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:401:21
[INFO] [stdout]     |
[INFO] [stdout] 401 |                 let mut bytes_read = match upgraded.read(&mut buffer).await {
[INFO] [stdout]     |                     ----^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `scheme`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:620:47
[INFO] [stdout]     |
[INFO] [stdout] 620 |     async fn serve_stream<I>(self, stream: I, scheme: Scheme, authority: Authority) -> Result<(), Box<dyn std::error::Error + Send + Sync>>
[INFO] [stdout]     |                                               ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scheme`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `authority`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:620:63
[INFO] [stdout]     |
[INFO] [stdout] 620 |     async fn serve_stream<I>(self, stream: I, scheme: Scheme, authority: Authority) -> Result<(), Box<dyn std::error::Error + Send + Sync>>
[INFO] [stdout]     |                                                               ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FutureExt`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:2:63
[INFO] [stdout]   |
[INFO] [stdout] 2 | use futures::{Sink, SinkExt, Stream, StreamExt, TryStreamExt, FutureExt};
[INFO] [stdout]   |                                                               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bstr::ByteSlice`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | use bstr::ByteSlice;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:673:25
[INFO] [stdout]     |
[INFO] [stdout] 673 | fn normalize_request<T>(mut req: Request<T>) -> Request<T> {
[INFO] [stdout]     |                         ----^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:158:21
[INFO] [stdout]     |
[INFO] [stdout] 158 |                     _ => self.certifier.verify_server_cert(end_entity, intermediates, server_name, ocsp_response, now)
[INFO] [stdout]     |                     ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:158:21
[INFO] [stdout]     |
[INFO] [stdout] 142 |                     IpAddr::V4(ip) => {
[INFO] [stdout]     |                     -------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 150 |                     IpAddr::V6(ip) => {
[INFO] [stdout]     |                     -------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 158 |                     _ => self.certifier.verify_server_cert(end_entity, intermediates, server_name, ocsp_response, now)
[INFO] [stdout]     |                     ^ collectively making this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling product-os-proxy v0.0.17 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]    --> src/proxy_middleware.rs:102:28
[INFO] [stdout]     |
[INFO] [stdout] 102 |     async fn before(&self, request: Request<Body>) -> BeforeResult {
[INFO] [stdout]     |                            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:106:27
[INFO] [stdout]     |
[INFO] [stdout] 106 |     async fn after(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                           ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:106:53
[INFO] [stdout]     |
[INFO] [stdout] 106 |     async fn after(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:110:29
[INFO] [stdout]     |
[INFO] [stdout] 110 |     async fn success(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:110:55
[INFO] [stdout]     |
[INFO] [stdout] 110 |     async fn success(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:114:29
[INFO] [stdout]     |
[INFO] [stdout] 114 |     async fn failure(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:114:55
[INFO] [stdout]     |
[INFO] [stdout] 114 |     async fn failure(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]    --> src/proxy_middleware.rs:122:48
[INFO] [stdout]     |
[INFO] [stdout] 122 |     async fn before_product_os_response(&self, request: Request<Body>) -> BeforeResult {
[INFO] [stdout]     |                                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:126:47
[INFO] [stdout]     |
[INFO] [stdout] 126 |     async fn after_product_os_response(&self, response: ProductOSResponse<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                               ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:126:82
[INFO] [stdout]     |
[INFO] [stdout] 126 |     async fn after_product_os_response(&self, response: ProductOSResponse<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                                                  ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `service`
[INFO] [stdout]    --> src/lib.rs:179:30
[INFO] [stdout]     |
[INFO] [stdout] 179 |     async fn register(&self, service: Arc<dyn Service>) -> RegistryService {
[INFO] [stdout]     |                              ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IoStream` is never constructed
[INFO] [stdout]   --> src/mitm/decoder.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct IoStream<T>(T);
[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 `decode` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:38:4
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn decode(
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Body` and `Decoder` are never constructed
[INFO] [stdout]   --> src/mitm/decoder.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | enum Decoder<T> {
[INFO] [stdout]    |      ------- variants in this enum
[INFO] [stdout] 52 |     Body(T),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 53 |     Decoder(Box<dyn AsyncRead + Send + Sync + Unpin>),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `decode` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:57:12
[INFO] [stdout]    |
[INFO] [stdout] 56 | impl Decoder<Body> {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] 57 |     pub fn decode(self, encoding: &[u8]) -> Result<Self, Error> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_encodings` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:78:4
[INFO] [stdout]    |
[INFO] [stdout] 78 | fn extract_encodings(headers: &HeaderMap<HeaderValue>) -> impl Iterator<Item = &[u8]> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decode_body` is never used
[INFO] [stdout]   --> src/mitm/decoder.rs:86:4
[INFO] [stdout]    |
[INFO] [stdout] 86 | fn decode_body<'a>(
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decode_request` is never used
[INFO] [stdout]    --> src/mitm/decoder.rs:132:8
[INFO] [stdout]     |
[INFO] [stdout] 132 | pub fn decode_request(mut req: Request<Body>) -> Result<Request<Body>, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decode_response` is never used
[INFO] [stdout]    --> src/mitm/decoder.rs:186:8
[INFO] [stdout]     |
[INFO] [stdout] 186 | pub fn decode_response(mut res: Response<Body>) -> Result<Response<Body>, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `certificates` is never read
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub struct Proxy<C, CA, H, W, F> {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 48 |     certificates: product_os_security::certificates::Certificates,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `http_builder` is never used
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 61 | impl Proxy<(), RcgenAuthority, ProxyMiddleware, ProxyMiddleware, Pending<()>> {
[INFO] [stdout]    | ----------------------------------------------------------------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub fn http_builder() -> ProxyBuilder<HttpConnector, RcgenAuthority, ProxyMiddleware, ProxyMiddleware, Pending<()>> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CustomCertVerifier` is never constructed
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:699:12
[INFO] [stdout]     |
[INFO] [stdout] 699 | pub struct CustomCertVerifier {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:704:12
[INFO] [stdout]     |
[INFO] [stdout] 703 | impl CustomCertVerifier {
[INFO] [stdout]     | ----------------------- associated function in this implementation
[INFO] [stdout] 704 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Listener` is never constructed
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 53 | pub(crate) enum AddrOrListener {
[INFO] [stdout]    |                 -------------- variant in this enum
[INFO] [stdout] 54 |     Addr(SocketAddr),
[INFO] [stdout] 55 |     Listener(TcpListener),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AddrOrListener` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `use_http_client` is never used
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:82:12
[INFO] [stdout]    |
[INFO] [stdout] 81 | impl<CA, H, W, F> ProxyBuilder<HttpConnector, CA, H, W, F> {
[INFO] [stdout]    | ---------------------------------------------------------- method in this implementation
[INFO] [stdout] 82 |     pub fn use_http_client(self) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `use_websocket_handler` is never used
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 284 | impl<C, CA, F> ProxyBuilder<C, CA, ProxyMiddleware, ProxyMiddleware, F> {
[INFO] [stdout]     | ----------------------------------------------------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 304 |     pub fn use_websocket_handler(self, websocket_handler: ProxyMiddleware) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `use_listener`, `use_custom_websocket_connector`, and `use_custom_client` are never used
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:353:12
[INFO] [stdout]     |
[INFO] [stdout] 333 | impl<C, CA, H, W, F> ProxyBuilder<C, CA, H, W, F> {
[INFO] [stdout]     | ------------------------------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 353 |     pub fn use_listener(self, listener: TcpListener) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn use_custom_websocket_connector(self, connector: Connector) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 429 |     pub fn use_custom_client(self, client: Client<C, BodyBytes>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `http_body_util`
[INFO] [stdout]    --> src/mitm/decoder.rs:274:13
[INFO] [stdout]     |
[INFO] [stdout] 274 |         use http_body_util::BodyExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `http_body_util`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `http_body_util`, use `cargo add http_body_util` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NetworkProxyCertificateAuthorityFiles`
[INFO] [stdout]  --> src/lib.rs:5:56
[INFO] [stdout]   |
[INFO] [stdout] 5 | use product_os_configuration::{Configuration, Network, NetworkProxyCertificateAuthorityFiles, TunnelType};
[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: `product_os_utilities::ProductOSError`
[INFO] [stdout]   --> src/lib.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use product_os_utilities::ProductOSError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::mitm::certificate_authority::RcgenAuthority`
[INFO] [stdout]   --> src/lib.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::mitm::certificate_authority::RcgenAuthority;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpHandler` and `ProxyBuilder`
[INFO] [stdout]   --> src/lib.rs:13:19
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::mitm::{HttpHandler, ProxyBuilder};
[INFO] [stdout]    |                   ^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::mitm::rustls::crypto::CryptoProvider`
[INFO] [stdout]   --> src/lib.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::mitm::rustls::crypto::CryptoProvider;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rustls`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:1:117
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::mitm::{certificate_authority::CertificateAuthority, HttpContext, HttpHandler, RequestOrResponse, Rewind, rustls, WebSocketCont...
[INFO] [stdout]   |                                                                                                                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TryStreamExt`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:2:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | use futures::{Sink, SinkExt, Stream, StreamExt, TryStreamExt, FutureExt};
[INFO] [stdout]   |                                                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpConnector` and `server`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:6:28
[INFO] [stdout]    |
[INFO] [stdout]  6 |         connect::{Connect, HttpConnector},
[INFO] [stdout]    |                            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 10 |     server
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BodyError`, `Body`, and `StreamBody`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Body, BodyExt, BodyBytes, Full, BodyError, StreamBody
[INFO] [stdout]    |     ^^^^                            ^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ProductOSRequestClient`, `ProductOSRequestError`, `ProductOSRequest`, `ProductOSRequester`, and `ProductOSResponse`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:20:43
[INFO] [stdout]    |
[INFO] [stdout] 20 | ...roductOSClient, ProductOSRequest, ProductOSRequestClient, ProductOSRequester, ProductOSRequestError, ProductOSResponse};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `product_os_server::RequestParts`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use product_os_server::RequestParts;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Frame`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:32:19
[INFO] [stdout]    |
[INFO] [stdout] 32 | use hyper::body::{Frame, Incoming};
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HyperWebsocketStream` and `HyperWebsocket`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:37:26
[INFO] [stdout]    |
[INFO] [stdout] 37 | use hyper_tungstenite::{ HyperWebsocket, HyperWebsocketStream };
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_tungstenite::tungstenite::Error`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | use hyper_tungstenite::tungstenite::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_tungstenite::tungstenite::error::ProtocolError`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | use hyper_tungstenite::tungstenite::error::ProtocolError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Role` and `WebSocketConfig`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:40:48
[INFO] [stdout]    |
[INFO] [stdout] 40 | use hyper_tungstenite::tungstenite::protocol::{Role, WebSocketConfig};
[INFO] [stdout]    |                                                ^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AsyncRead` and `AsyncWrite`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:44:10
[INFO] [stdout]    |
[INFO] [stdout] 44 |     io::{AsyncRead, AsyncReadExt, AsyncWrite},
[INFO] [stdout]    |          ^^^^^^^^^                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper::http::uri::Port`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 | use hyper::http::uri::Port;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CertificateDer`, `ServerName`, and `UnixTime`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 60 | use rustls_pki_types::{CertificateDer, ServerName, UnixTime};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HandshakeSignatureValid`, `ServerCertVerified`, and `ServerCertVerifier`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:63:43
[INFO] [stdout]    |
[INFO] [stdout] 63 | use crate::mitm::rustls::client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier};
[INFO] [stdout]    |                                           ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DigitallySignedStruct` and `SignatureScheme`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:64:27
[INFO] [stdout]    |
[INFO] [stdout] 64 | use crate::mitm::rustls::{DigitallySignedStruct, SignatureScheme};
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CertificateAuthority`, `HttpHandler`, `WebSocketHandler`, and `mitm`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:3:9
[INFO] [stdout]    |
[INFO] [stdout]  3 |         HttpHandler, Proxy, WebSocketHandler, rustls,
[INFO] [stdout]    |         ^^^^^^^^^^^         ^^^^^^^^^^^^^^^^
[INFO] [stdout]  4 |         certificate_authority::{
[INFO] [stdout]  5 |             RcgenAuthority, CertificateAuthority
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     }, mitm, ProxyMiddleware
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DnsName`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:20:25
[INFO] [stdout]    |
[INFO] [stdout] 20 | use rustls_pki_types::{ DnsName, IpAddr, CertificateDer, ServerName, UnixTime, Ipv4Addr, Ipv6Addr };
[INFO] [stdout]    |                         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Certificate`, `Error`, and `KeyPair`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 | use rcgen::{Certificate, Error, KeyPair};
[INFO] [stdout]    |             ^^^^^^^^^^^  ^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Connect` and `server::conn::auto::Builder`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:34:19
[INFO] [stdout]    |
[INFO] [stdout] 34 |         connect::{Connect, HttpConnector},
[INFO] [stdout]    |                   ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     server::conn::auto::Builder,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Future`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:45:23
[INFO] [stdout]    |
[INFO] [stdout] 45 |     future::{pending, Future, Pending},
[INFO] [stdout]    |                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Formatter`
[INFO] [stdout]   --> src/mitm/proxy/builder.rs:47:23
[INFO] [stdout]    |
[INFO] [stdout] 47 | use std::fmt::{Debug, Formatter};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hyper_rustls::ConfigBuilderExt`
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:181:13
[INFO] [stdout]     |
[INFO] [stdout] 181 |         use hyper_rustls::ConfigBuilderExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server::conn::auto`
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 |     server::conn::auto,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BodyBytes as Body`
[INFO] [stdout]   --> src/mitm/proxy/mod.rs:31:28
[INFO] [stdout]    |
[INFO] [stdout] 31 | use product_os_http_body::{BodyBytes as Body, BodyBytes};
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::Infallible`
[INFO] [stdout]  --> src/mitm/mod.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::convert::Infallible;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/mitm/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bytes::Bytes`
[INFO] [stdout]   --> src/mitm/mod.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use bytes::Bytes;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HeaderName`, `HeaderValue`, and `InvalidHeaderName`
[INFO] [stdout]   --> src/mitm/mod.rs:21:21
[INFO] [stdout]    |
[INFO] [stdout] 21 | use hyper::header::{HeaderName, HeaderValue, InvalidHeaderName};
[INFO] [stdout]    |                     ^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `product_os_http::HeaderMap`
[INFO] [stdout]   --> src/mitm/mod.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use product_os_http::HeaderMap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BodyBytes` and `BodyError`
[INFO] [stdout]   --> src/mitm/mod.rs:23:47
[INFO] [stdout]    |
[INFO] [stdout] 23 | use product_os_http_body::{BodyBytes as Body, BodyBytes, BodyError};
[INFO] [stdout]    |                                               ^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decode_request` and `decode_response`
[INFO] [stdout]   --> src/mitm/mod.rs:30:19
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub use decoder::{decode_request, decode_response};
[INFO] [stdout]    |                   ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `collect` found for type parameter `H` in the current scope
[INFO] [stdout]    --> src/mitm/decoder.rs:275:14
[INFO] [stdout]     |
[INFO] [stdout] 270 |     async fn to_bytes<H: HttpBody>(body: H) -> Bytes
[INFO] [stdout]     |                       - method `collect` not found for this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 275 |         body.collect().await.unwrap().to_bytes()
[INFO] [stdout]     |              ^^^^^^^ method cannot be called on `H` due to unsatisfied trait bounds
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/http-body-util-0.1.3/src/lib.rs:84:8
[INFO] [stdout]     |
[INFO] [stdout]  84 |     fn collect(self) -> combinators::Collect<Self>
[INFO] [stdout]     |        ------- the method is available for `H` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `BodyExt` which provides `collect` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout] 211 +     use product_os_request::BodyExt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `res` is never read
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:198:21
[INFO] [stdout]     |
[INFO] [stdout] 198 |             let mut res = Response::new(BodyBytes::empty());
[INFO] [stdout]     |                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:249:49
[INFO] [stdout]     |
[INFO] [stdout] 249 | ...                   Err(e) => {
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:254:41
[INFO] [stdout]     |
[INFO] [stdout] 254 | ...                   Err(e) => Response::builder().status(StatusCode::INTERNAL_SERVER_ERROR).body(BodyBytes::empty()).unwrap()
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:257:33
[INFO] [stdout]     |
[INFO] [stdout] 257 | ...                   Err(e) => Response::builder().status(StatusCode::INTERNAL_SERVER_ERROR).body(BodyBytes::empty()).unwrap()
[INFO] [stdout]     |                           ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:138:13
[INFO] [stdout]     |
[INFO] [stdout] 138 |         let mut req = match self
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:209:32
[INFO] [stdout]     |
[INFO] [stdout] 209 | ...                   Ok(mut response) => {
[INFO] [stdout]     |                          ----^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:389:13
[INFO] [stdout]     |
[INFO] [stdout] 389 |         let path = uri.path();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `authority`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:390:13
[INFO] [stdout]     |
[INFO] [stdout] 390 |         let authority = match uri.authority() {
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:401:21
[INFO] [stdout]     |
[INFO] [stdout] 401 |                 let mut bytes_read = match upgraded.read(&mut buffer).await {
[INFO] [stdout]     |                     ----^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `scheme`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:620:47
[INFO] [stdout]     |
[INFO] [stdout] 620 |     async fn serve_stream<I>(self, stream: I, scheme: Scheme, authority: Authority) -> Result<(), Box<dyn std::error::Error + Send + Sync>>
[INFO] [stdout]     |                                               ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scheme`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `authority`
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:620:63
[INFO] [stdout]     |
[INFO] [stdout] 620 |     async fn serve_stream<I>(self, stream: I, scheme: Scheme, authority: Authority) -> Result<(), Box<dyn std::error::Error + Send + Sync>>
[INFO] [stdout]     |                                                               ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FutureExt`
[INFO] [stdout]  --> src/mitm/proxy/internal.rs:2:63
[INFO] [stdout]   |
[INFO] [stdout] 2 | use futures::{Sink, SinkExt, Stream, StreamExt, TryStreamExt, FutureExt};
[INFO] [stdout]   |                                                               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bstr::ByteSlice`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | use bstr::ByteSlice;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]   --> src/mitm/proxy/internal.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | use std::io::Read;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/mitm/proxy/internal.rs:673:25
[INFO] [stdout]     |
[INFO] [stdout] 673 | fn normalize_request<T>(mut req: Request<T>) -> Request<T> {
[INFO] [stdout]     |                         ----^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:158:21
[INFO] [stdout]     |
[INFO] [stdout] 158 |                     _ => self.certifier.verify_server_cert(end_entity, intermediates, server_name, ocsp_response, now)
[INFO] [stdout]     |                     ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/mitm/proxy/builder.rs:158:21
[INFO] [stdout]     |
[INFO] [stdout] 142 |                     IpAddr::V4(ip) => {
[INFO] [stdout]     |                     -------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 150 |                     IpAddr::V6(ip) => {
[INFO] [stdout]     |                     -------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 158 |                     _ => self.certifier.verify_server_cert(end_entity, intermediates, server_name, ocsp_response, now)
[INFO] [stdout]     |                     ^ collectively making this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]    --> src/proxy_middleware.rs:102:28
[INFO] [stdout]     |
[INFO] [stdout] 102 |     async fn before(&self, request: Request<Body>) -> BeforeResult {
[INFO] [stdout]     |                            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:106:27
[INFO] [stdout]     |
[INFO] [stdout] 106 |     async fn after(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                           ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:106:53
[INFO] [stdout]     |
[INFO] [stdout] 106 |     async fn after(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                     ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:110:29
[INFO] [stdout]     |
[INFO] [stdout] 110 |     async fn success(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:110:55
[INFO] [stdout]     |
[INFO] [stdout] 110 |     async fn success(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:114:29
[INFO] [stdout]     |
[INFO] [stdout] 114 |     async fn failure(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:114:55
[INFO] [stdout]     |
[INFO] [stdout] 114 |     async fn failure(&self, response: Response<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]    --> src/proxy_middleware.rs:122:48
[INFO] [stdout]     |
[INFO] [stdout] 122 |     async fn before_product_os_response(&self, request: Request<Body>) -> BeforeResult {
[INFO] [stdout]     |                                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/proxy_middleware.rs:126:47
[INFO] [stdout]     |
[INFO] [stdout] 126 |     async fn after_product_os_response(&self, response: ProductOSResponse<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                               ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request_data`
[INFO] [stdout]    --> src/proxy_middleware.rs:126:82
[INFO] [stdout]     |
[INFO] [stdout] 126 |     async fn after_product_os_response(&self, response: ProductOSResponse<Body>, request_data: RequestData) -> Response<Body> {
[INFO] [stdout]     |                                                                                  ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `service`
[INFO] [stdout]    --> src/lib.rs:179:30
[INFO] [stdout]     |
[INFO] [stdout] 179 |     async fn register(&self, service: Arc<dyn Service>) -> RegistryService {
[INFO] [stdout]     |                              ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `product-os-proxy` (lib test) due to 2 previous errors; 65 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "385e2e073ed445018da797a7b15775a50d2865c136e3b3e38a6ab2aa638b3f68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "385e2e073ed445018da797a7b15775a50d2865c136e3b3e38a6ab2aa638b3f68", kill_on_drop: false }`
[INFO] [stdout] 385e2e073ed445018da797a7b15775a50d2865c136e3b3e38a6ab2aa638b3f68
