[INFO] cloning repository https://github.com/fuguier001/rust-mitm-proxy
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fuguier001/rust-mitm-proxy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuguier001%2Frust-mitm-proxy", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuguier001%2Frust-mitm-proxy'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 051e2a46c05d9fe7afc086751bfed66d53a2ec8c
[INFO] testing fuguier001/rust-mitm-proxy against 1.99.0-beta.8+cargoflags=--release for beta-release-1.100-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffuguier001%2Frust-mitm-proxy" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/fuguier001/rust-mitm-proxy
[INFO] finished tweaking git repo https://github.com/fuguier001/rust-mitm-proxy
[INFO] tweaked toml for git repo https://github.com/fuguier001/rust-mitm-proxy written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/fuguier001/rust-mitm-proxy on toolchain 1.99.0-beta.8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/fuguier001/rust-mitm-proxy 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" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded uuid v1.21.0
[INFO] [stderr]   Downloaded rcgen v0.11.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58
[INFO] running `Command { std: "docker" "start" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling find-msvc-tools v0.1.9
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling socket2 v0.6.2
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling hashbrown v0.16.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]    Compiling bitflags v2.11.0
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling deranged v0.5.8
[INFO] [stderr]    Compiling cc v1.2.56
[INFO] [stderr]    Compiling getrandom v0.4.1
[INFO] [stderr]    Compiling num-conv v0.2.0
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling regex-syntax v0.8.10
[INFO] [stderr]    Compiling time-core v0.1.8
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling clap_lex v1.0.0
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling option-ext v0.2.0
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]    Compiling untrusted v0.7.1
[INFO] [stderr]    Compiling indexmap v2.13.0
[INFO] [stderr]    Compiling clap_builder v4.5.60
[INFO] [stderr]    Compiling dirs-sys v0.4.1
[INFO] [stderr]    Compiling pem v3.0.6
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.11
[INFO] [stderr]    Compiling nu-ansi-term v0.50.3
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling memchr v2.8.0
[INFO] [stderr]    Compiling ryu v1.0.23
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling rustls-native-certs v0.6.3
[INFO] [stderr]    Compiling dirs v5.0.1
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling time v0.3.47
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling yasna v0.5.2
[INFO] [stderr]    Compiling uuid v1.21.0
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling clap_derive v4.5.55
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling clap v4.5.60
[INFO] [stderr]    Compiling serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling chrono v0.4.44
[INFO] [stderr]    Compiling rcgen v0.11.3
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling rust_mitm_proxy v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `KeyPair`
[INFO] [stdout]  --> src/proxy/certificate.rs:3:78
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, IsCa, KeyPair, SanType, BasicConstraints};
[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: `AsyncWriteExt`
[INFO] [stdout]   --> src/proxy/http.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 |         use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt`
[INFO] [stdout]    --> src/proxy/http.rs:270:13
[INFO] [stdout]     |
[INFO] [stdout] 270 |         use tokio::io::AsyncWriteExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Ipv4Addr`
[INFO] [stdout]  --> src/utils/network.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::net::{IpAddr, Ipv4Addr};
[INFO] [stdout]   |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> src/capture/recorder.rs:33:22
[INFO] [stdout]    |
[INFO] [stdout] 32 |             connection: todo!(), // TODO: 从上下文获取连接信息
[INFO] [stdout]    |                         ------- any code following this expression is unreachable
[INFO] [stdout] 33 |             request: request.clone(),
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout]    --> src/proxy/certificate.rs:114:16
[INFO] [stdout]     |
[INFO] [stdout] 114 |             if let Ok(wildcard_ia5) = wildcard.try_into() {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout]     = help: consider replacing the `if let` with a `let`
[INFO] [stdout]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]   --> src/capture/recorder.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         request: &RequestInfo,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]   --> src/capture/recorder.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         response: &ResponseInfo,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `duration_ms`
[INFO] [stdout]   --> src/capture/recorder.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         duration_ms: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration_ms`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `records` are never read
[INFO] [stdout]   --> src/capture/recorder.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct TrafficRecorder {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout]  9 |     config: CaptureConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 10 |     records: Arc<RwLock<Vec<TrafficRecord>>>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `record`, `get_all`, and `print_record` are never used
[INFO] [stdout]   --> src/capture/recorder.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl TrafficRecorder {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub async fn record(
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn get_all(&self) -> Vec<TrafficRecord> {
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn print_record(&self, record: &TrafficRecord) {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Exporter` is never constructed
[INFO] [stdout]  --> src/capture/exporter.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct Exporter;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `export`, `export_json`, `export_har`, `to_har`, `record_to_har_entry`, and `headers_to_har` are never used
[INFO] [stdout]   --> src/capture/exporter.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Exporter {
[INFO] [stdout]    | ------------- associated functions in this implementation
[INFO] [stdout] 12 |     /// 导出流量记录
[INFO] [stdout] 13 |     pub fn export(records: &[TrafficRecord], format: &ExportFormat, path: &Path) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     fn export_json(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     fn export_har(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn to_har(records: &[TrafficRecord]) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     fn record_to_har_entry(record: &TrafficRecord) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 97 |     fn headers_to_har(headers: &std::collections::HashMap<String, String>) -> Vec<serde_json::Value> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_file` is never used
[INFO] [stdout]   --> src/config.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn to_file<P: Into<PathBuf>>(&self, path: P) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `TlsError` and `ProxyError` are never constructed
[INFO] [stdout]   --> src/error.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum ProxyError {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 22 |     TlsError(String),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     ProxyError(String),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `ca_cert_der` is never read
[INFO] [stdout]   --> src/proxy/certificate.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct CertificateManager {
[INFO] [stdout]    |            ------------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     ca_cert_der: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_ca_cert_der`, `save_ca_cert`, and `get_cache_stats` are never used
[INFO] [stdout]    --> src/proxy/certificate.rs:161:12
[INFO] [stdout]     |
[INFO] [stdout]  28 | impl CertificateManager {
[INFO] [stdout]     | ----------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 161 |     pub fn get_ca_cert_der(&self) -> Result<Vec<u8>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 166 |     pub async fn save_ca_cert(&self, path: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub async fn get_cache_stats(&self) -> (usize, usize) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `extract_query` is never used
[INFO] [stdout]    --> src/proxy/http.rs:458:8
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl HttpHandler {
[INFO] [stdout]     | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 458 |     fn extract_query(url: &str) -> Option<String> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `create_default_config` is never used
[INFO] [stdout]   --> src/utils/config_utils.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ConfigUtils {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn create_default_config() -> Result<Config> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/config.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 71 |         if self.server.port > 65535 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 1m 28s
[INFO] running `Command { std: "docker" "inspect" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tokio-rustls v0.24.1
[INFO] [stderr]    Compiling tokio-test v0.4.5
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling rust_mitm_proxy v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `KeyPair`
[INFO] [stdout]  --> src/proxy/certificate.rs:3:78
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, IsCa, KeyPair, SanType, BasicConstraints};
[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: `AsyncWriteExt`
[INFO] [stdout]   --> src/proxy/http.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 30 |         use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt`
[INFO] [stdout]    --> src/proxy/http.rs:270:13
[INFO] [stdout]     |
[INFO] [stdout] 270 |         use tokio::io::AsyncWriteExt;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Ipv4Addr`
[INFO] [stdout]  --> src/utils/network.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::net::{IpAddr, Ipv4Addr};
[INFO] [stdout]   |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> src/capture/recorder.rs:33:22
[INFO] [stdout]    |
[INFO] [stdout] 32 |             connection: todo!(), // TODO: 从上下文获取连接信息
[INFO] [stdout]    |                         ------- any code following this expression is unreachable
[INFO] [stdout] 33 |             request: request.clone(),
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: irrefutable `if let` pattern
[INFO] [stdout]    --> src/proxy/certificate.rs:114:16
[INFO] [stdout]     |
[INFO] [stdout] 114 |             if let Ok(wildcard_ia5) = wildcard.try_into() {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stdout]     = help: consider replacing the `if let` with a `let`
[INFO] [stdout]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `request`
[INFO] [stdout]   --> src/capture/recorder.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         request: &RequestInfo,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]   --> src/capture/recorder.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         response: &ResponseInfo,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `duration_ms`
[INFO] [stdout]   --> src/capture/recorder.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         duration_ms: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration_ms`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `records` are never read
[INFO] [stdout]   --> src/capture/recorder.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct TrafficRecorder {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout]  9 |     config: CaptureConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 10 |     records: Arc<RwLock<Vec<TrafficRecord>>>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `record`, `get_all`, and `print_record` are never used
[INFO] [stdout]   --> src/capture/recorder.rs:23:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl TrafficRecorder {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub async fn record(
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn get_all(&self) -> Vec<TrafficRecord> {
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn print_record(&self, record: &TrafficRecord) {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Exporter` is never constructed
[INFO] [stdout]  --> src/capture/exporter.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct Exporter;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `export`, `export_json`, `export_har`, `to_har`, `record_to_har_entry`, and `headers_to_har` are never used
[INFO] [stdout]   --> src/capture/exporter.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Exporter {
[INFO] [stdout]    | ------------- associated functions in this implementation
[INFO] [stdout] 12 |     /// 导出流量记录
[INFO] [stdout] 13 |     pub fn export(records: &[TrafficRecord], format: &ExportFormat, path: &Path) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     fn export_json(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     fn export_har(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn to_har(records: &[TrafficRecord]) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     fn record_to_har_entry(record: &TrafficRecord) -> serde_json::Value {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 97 |     fn headers_to_har(headers: &std::collections::HashMap<String, String>) -> Vec<serde_json::Value> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_file` is never used
[INFO] [stdout]   --> src/config.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn to_file<P: Into<PathBuf>>(&self, path: P) -> Result<()> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `TlsError` and `ProxyError` are never constructed
[INFO] [stdout]   --> src/error.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum ProxyError {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 22 |     TlsError(String),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     ProxyError(String),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProxyError` 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 `save_ca_cert` is never used
[INFO] [stdout]    --> src/proxy/certificate.rs:166:18
[INFO] [stdout]     |
[INFO] [stdout]  28 | impl CertificateManager {
[INFO] [stdout]     | ----------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 166 |     pub async fn save_ca_cert(&self, path: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `extract_query` is never used
[INFO] [stdout]    --> src/proxy/http.rs:458:8
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl HttpHandler {
[INFO] [stdout]     | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 458 |     fn extract_query(url: &str) -> Option<String> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `create_default_config` is never used
[INFO] [stdout]   --> src/utils/config_utils.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ConfigUtils {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub fn create_default_config() -> Result<Config> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/config.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 71 |         if self.server.port > 65535 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 26.53s
[INFO] running `Command { std: "docker" "inspect" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `KeyPair`
[INFO] [stderr]  --> src/proxy/certificate.rs:3:78
[INFO] [stderr]   |
[INFO] [stderr] 3 | use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, IsCa, KeyPair, SanType, BasicConstraints};
[INFO] [stderr]   |                                                                              ^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `AsyncWriteExt`
[INFO] [stderr]   --> src/proxy/http.rs:30:56
[INFO] [stderr]    |
[INFO] [stderr] 30 |         use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader};
[INFO] [stderr]    |                                                        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `tokio::io::AsyncWriteExt`
[INFO] [stderr]    --> src/proxy/http.rs:270:13
[INFO] [stderr]     |
[INFO] [stderr] 270 |         use tokio::io::AsyncWriteExt;
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Ipv4Addr`
[INFO] [stderr]  --> src/utils/network.rs:2:24
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::net::{IpAddr, Ipv4Addr};
[INFO] [stderr]   |                        ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr]   --> src/capture/recorder.rs:33:22
[INFO] [stderr]    |
[INFO] [stderr] 32 |             connection: todo!(), // TODO: 从上下文获取连接信息
[INFO] [stderr]    |                         ------- any code following this expression is unreachable
[INFO] [stderr] 33 |             request: request.clone(),
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^ unreachable expression
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: irrefutable `if let` pattern
[INFO] [stderr]    --> src/proxy/certificate.rs:114:16
[INFO] [stderr]     |
[INFO] [stderr] 114 |             if let Ok(wildcard_ia5) = wildcard.try_into() {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this pattern will always match, so the `if let` is useless
[INFO] [stderr]     = help: consider replacing the `if let` with a `let`
[INFO] [stderr]     = note: `#[warn(irrefutable_let_patterns)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `request`
[INFO] [stderr]   --> src/capture/recorder.rs:25:9
[INFO] [stderr]    |
[INFO] [stderr] 25 |         request: &RequestInfo,
[INFO] [stderr]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `response`
[INFO] [stderr]   --> src/capture/recorder.rs:26:9
[INFO] [stderr]    |
[INFO] [stderr] 26 |         response: &ResponseInfo,
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `duration_ms`
[INFO] [stderr]   --> src/capture/recorder.rs:27:9
[INFO] [stderr]    |
[INFO] [stderr] 27 |         duration_ms: u64,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration_ms`
[INFO] [stderr] 
[INFO] [stderr] warning: fields `config` and `records` are never read
[INFO] [stderr]   --> src/capture/recorder.rs:9:5
[INFO] [stderr]    |
[INFO] [stderr]  8 | pub struct TrafficRecorder {
[INFO] [stderr]    |            --------------- fields in this struct
[INFO] [stderr]  9 |     config: CaptureConfig,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr] 10 |     records: Arc<RwLock<Vec<TrafficRecord>>>,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: methods `record`, `get_all`, and `print_record` are never used
[INFO] [stderr]   --> src/capture/recorder.rs:23:18
[INFO] [stderr]    |
[INFO] [stderr] 13 | impl TrafficRecorder {
[INFO] [stderr]    | -------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 23 |     pub async fn record(
[INFO] [stderr]    |                  ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 51 |     pub async fn get_all(&self) -> Vec<TrafficRecord> {
[INFO] [stderr]    |                  ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 57 |     fn print_record(&self, record: &TrafficRecord) {
[INFO] [stderr]    |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Exporter` is never constructed
[INFO] [stderr]  --> src/capture/exporter.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub struct Exporter;
[INFO] [stderr]   |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `export`, `export_json`, `export_har`, `to_har`, `record_to_har_entry`, and `headers_to_har` are never used
[INFO] [stderr]   --> src/capture/exporter.rs:13:12
[INFO] [stderr]    |
[INFO] [stderr] 11 | impl Exporter {
[INFO] [stderr]    | ------------- associated functions in this implementation
[INFO] [stderr] 12 |     /// 导出流量记录
[INFO] [stderr] 13 |     pub fn export(records: &[TrafficRecord], format: &ExportFormat, path: &Path) -> Result<()> {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 21 |     fn export_json(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stderr]    |        ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 38 |     fn export_har(records: &[TrafficRecord], path: &Path) -> Result<()> {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 56 |     fn to_har(records: &[TrafficRecord]) -> serde_json::Value {
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 75 |     fn record_to_har_entry(record: &TrafficRecord) -> serde_json::Value {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 97 |     fn headers_to_har(headers: &std::collections::HashMap<String, String>) -> Vec<serde_json::Value> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `to_file` is never used
[INFO] [stderr]   --> src/config.rs:52:12
[INFO] [stderr]    |
[INFO] [stderr] 36 | impl Config {
[INFO] [stderr]    | ----------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 52 |     pub fn to_file<P: Into<PathBuf>>(&self, path: P) -> Result<()> {
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `TlsError` and `ProxyError` are never constructed
[INFO] [stderr]   --> src/error.rs:22:5
[INFO] [stderr]    |
[INFO] [stderr]  5 | pub enum ProxyError {
[INFO] [stderr]    |          ---------- variants in this enum
[INFO] [stderr] ...
[INFO] [stderr] 22 |     TlsError(String),
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 34 |     ProxyError(String),
[INFO] [stderr]    |     ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `save_ca_cert` is never used
[INFO] [stderr]    --> src/proxy/certificate.rs:166:18
[INFO] [stderr]     |
[INFO] [stderr]  28 | impl CertificateManager {
[INFO] [stderr]     | ----------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 166 |     pub async fn save_ca_cert(&self, path: &str) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `extract_query` is never used
[INFO] [stderr]    --> src/proxy/http.rs:458:8
[INFO] [stderr]     |
[INFO] [stderr]  16 | impl HttpHandler {
[INFO] [stderr]     | ---------------- associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 458 |     fn extract_query(url: &str) -> Option<String> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `create_default_config` is never used
[INFO] [stderr]   --> src/utils/config_utils.rs:17:12
[INFO] [stderr]    |
[INFO] [stderr]  8 | impl ConfigUtils {
[INFO] [stderr]    | ---------------- associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 17 |     pub fn create_default_config() -> Result<Config> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: comparison is useless due to type limits
[INFO] [stderr]   --> src/config.rs:71:12
[INFO] [stderr]    |
[INFO] [stderr] 71 |         if self.server.port > 65535 {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_mitm_proxy` (bin "rust_mitm_proxy" test) generated 19 warnings (run `cargo fix --bin "rust_mitm_proxy" -p rust_mitm_proxy --tests` to apply 7 suggestions)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.18s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/release/deps/rust_mitm_proxy-2811a694e3fdf9e7)
[INFO] [stdout] 
[INFO] [stdout] running 3 tests
[INFO] [stderr] error: test failed, to rerun pass `--bin rust_mitm_proxy`
[INFO] [stdout] test proxy::certificate::tests::test_cert_cache ... ok
[INFO] [stdout] test proxy::certificate::tests::test_ca_cert_generation ... FAILED
[INFO] [stdout] test proxy::certificate::tests::test_domain_cert_generation ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- proxy::certificate::tests::test_ca_cert_generation stdout ----
[INFO] [stdout] 🔐 生成新的 CA 根证书...
[INFO] [stdout] ✅ CA 根证书生成成功
[INFO] [stdout]    主题: CN=Rust MITM Proxy CA, O=Rust MITM Proxy, C=CN
[INFO] [stdout]    有效期: 10 年
[INFO] [stdout] 
[INFO] [stdout] thread 'proxy::certificate::tests::test_ca_cert_generation' (2393) panicked at src/proxy/certificate.rs:201:9:
[INFO] [stdout] assertion failed: ca_pem.contains("Rust MITM Proxy CA")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x5a47b7a3c761 - <<std[70759c8f55707aa4]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[df12db4294e9bfd3]::fmt::Display>::fmt
[INFO] [stdout]    1:     0x5a47b7a50e3a - core[df12db4294e9bfd3]::fmt::write
[INFO] [stdout]    2:     0x5a47b7a40d9c - <alloc[2182bb758b4b3781]::vec::Vec<u8> as core[df12db4294e9bfd3]::io::write::Write>::write_fmt
[INFO] [stdout]    3:     0x5a47b7a18866 - std[70759c8f55707aa4]::panicking::default_hook::{closure#0}
[INFO] [stdout]    4:     0x5a47b7a34c99 - std[70759c8f55707aa4]::panicking::default_hook
[INFO] [stdout]    5:     0x5a47b797dea0 - test[9d35eded1c95d3be]::test_main_inner::<test[9d35eded1c95d3be]::test_main_static::{closure#0}>::{closure#0}
[INFO] [stdout]    6:     0x5a47b7a34e52 - std[70759c8f55707aa4]::panicking::panic_with_hook
[INFO] [stdout]    7:     0x5a47b7a18944 - std[70759c8f55707aa4]::panicking::panic_handler::{closure#0}
[INFO] [stdout]    8:     0x5a47b7a11699 - std[70759c8f55707aa4]::sys::backtrace::__rust_end_short_backtrace::<std[70759c8f55707aa4]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]    9:     0x5a47b7a1950d - __rustc[8fa7c3cbc660c2b3]::rust_begin_unwind
[INFO] [stdout]   10:     0x5a47b7a5159c - core[df12db4294e9bfd3]::panicking::panic_fmt
[INFO] [stdout]   11:     0x5a47b7a51562 - core[df12db4294e9bfd3]::panicking::panic
[INFO] [stdout]   12:     0x5a47b796aad2 - rust_mitm_proxy[451ea35b8fa2b385]::proxy::certificate::tests::test_ca_cert_generation::{closure#0}
[INFO] [stdout]   13:     0x5a47b796f9c3 - <tokio[b1b5917e7fdac298]::runtime::scheduler::current_thread::Context>::enter::<core[df12db4294e9bfd3]::task::poll::Poll<()>, <tokio[b1b5917e7fdac298]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[df12db4294e9bfd3]::pin::Pin<&mut core[df12db4294e9bfd3]::pin::Pin<&mut dyn core[df12db4294e9bfd3]::future::future::Future<Output = ()>>>>::{closure#0}::{closure#0}>
[INFO] [stdout]   14:     0x5a47b796dffc - <tokio[b1b5917e7fdac298]::runtime::context::scoped::Scoped<tokio[b1b5917e7fdac298]::runtime::scheduler::Context>>::set::<<tokio[b1b5917e7fdac298]::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio[b1b5917e7fdac298]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[df12db4294e9bfd3]::pin::Pin<&mut core[df12db4294e9bfd3]::pin::Pin<&mut dyn core[df12db4294e9bfd3]::future::future::Future<Output = ()>>>>::{closure#0}, core[df12db4294e9bfd3]::option::Option<()>>::{closure#0}, (alloc[2182bb758b4b3781]::boxed::Box<tokio[b1b5917e7fdac298]::runtime::scheduler::current_thread::Core>, core[df12db4294e9bfd3]::option::Option<()>)>
[INFO] [stdout]   15:     0x5a47b796f6bd - <tokio[b1b5917e7fdac298]::runtime::scheduler::current_thread::CurrentThread>::block_on::<core[df12db4294e9bfd3]::pin::Pin<&mut dyn core[df12db4294e9bfd3]::future::future::Future<Output = ()>>>
[INFO] [stdout]   16:     0x5a47b796bf12 - <tokio[b1b5917e7fdac298]::runtime::runtime::Runtime>::block_on::<core[df12db4294e9bfd3]::pin::Pin<&mut dyn core[df12db4294e9bfd3]::future::future::Future<Output = ()>>>
[INFO] [stdout]   17:     0x5a47b796b6b7 - rust_mitm_proxy[451ea35b8fa2b385]::proxy::certificate::tests::test_ca_cert_generation
[INFO] [stdout]   18:     0x5a47b796f2a9 - <rust_mitm_proxy[451ea35b8fa2b385]::proxy::certificate::tests::test_ca_cert_generation::{closure#0} as core[df12db4294e9bfd3]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]   19:     0x5a47b797118b - test[9d35eded1c95d3be]::__rust_begin_short_backtrace::<core[df12db4294e9bfd3]::result::Result<(), alloc[2182bb758b4b3781]::string::String>, fn() -> core[df12db4294e9bfd3]::result::Result<(), alloc[2182bb758b4b3781]::string::String>>
[INFO] [stdout]   20:     0x5a47b797e7f5 - test[9d35eded1c95d3be]::run_test::{closure#0}
[INFO] [stdout]   21:     0x5a47b79780b4 - std[70759c8f55707aa4]::sys::backtrace::__rust_begin_short_backtrace::<test[9d35eded1c95d3be]::run_test::{closure#1}, ()>
[INFO] [stdout]   22:     0x5a47b7981952 - <std[70759c8f55707aa4]::thread::lifecycle::spawn_unchecked<test[9d35eded1c95d3be]::run_test::{closure#1}, ()>::{closure#1} as core[df12db4294e9bfd3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]   23:     0x5a47b7a3c009 - <std[70759c8f55707aa4]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]   24:     0x70df8d8bedfa - <unknown>
[INFO] [stdout]   25:     0x70df8d9523d4 - clone
[INFO] [stdout]   26:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     proxy::certificate::tests::test_ca_cert_generation
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58", kill_on_drop: false }`
[INFO] [stdout] bdecf948b33691366ec30c85629566055e0178b28c2008ade568ea60f8f00d58
