[INFO] cloning repository https://github.com/bigyao25/mcp-markdown-tools [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bigyao25/mcp-markdown-tools" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbigyao25%2Fmcp-markdown-tools", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbigyao25%2Fmcp-markdown-tools'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] baee45109d017e94d3c1799b2edf25643bdc1d75 [INFO] building bigyao25/mcp-markdown-tools against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbigyao25%2Fmcp-markdown-tools" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bigyao25/mcp-markdown-tools [INFO] removed 0 missing tests [INFO] finished tweaking git repo https://github.com/bigyao25/mcp-markdown-tools [INFO] tweaked toml for git repo https://github.com/bigyao25/mcp-markdown-tools written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bigyao25/mcp-markdown-tools on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bigyao25/mcp-markdown-tools 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded schemars v0.8.22 [INFO] [stderr] Downloaded fragile v2.0.1 [INFO] [stderr] Downloaded schemars_derive v1.0.4 [INFO] [stderr] Downloaded wit-bindgen v0.45.0 [INFO] [stderr] Downloaded wasi v0.14.3+wasi-0.2.4 [INFO] [stderr] Downloaded serde_qs v0.8.5 [INFO] [stderr] Downloaded wiremock v0.5.22 [INFO] [stderr] Downloaded deadpool v0.9.5 [INFO] [stderr] Downloaded infer v0.2.3 [INFO] [stderr] Downloaded predicates-core v1.0.9 [INFO] [stderr] Downloaded rstest_macros v0.26.1 [INFO] [stderr] Downloaded downcast v0.11.0 [INFO] [stderr] Downloaded criterion-plot v0.5.0 [INFO] [stderr] Downloaded predicates-tree v1.0.12 [INFO] [stderr] Downloaded criterion v0.5.1 [INFO] [stderr] Downloaded clap v4.5.46 [INFO] [stderr] Downloaded clap_builder v4.5.46 [INFO] [stderr] Downloaded mockall_derive v0.12.1 [INFO] [stderr] Downloaded proptest v1.7.0 [INFO] [stderr] Downloaded rstest v0.26.1 [INFO] [stderr] Downloaded quinn-udp v0.5.13 [INFO] [stderr] Downloaded rand_xorshift v0.4.0 [INFO] [stderr] Downloaded wait-timeout v0.2.1 [INFO] [stderr] Downloaded relative-path v1.9.3 [INFO] [stderr] Downloaded rmcp v0.6.0 [INFO] [stderr] Downloaded schemars_derive v0.8.22 [INFO] [stderr] Downloaded predicates v3.1.3 [INFO] [stderr] Downloaded termtree v0.5.1 [INFO] [stderr] Downloaded rmcp-macros v0.6.0 [INFO] [stderr] Downloaded mockall v0.12.1 [INFO] [stderr] Downloaded retain_mut v0.1.9 [INFO] [stderr] Downloaded http-types v2.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45a020d6240573622333ac06afef11920fbba480e18f273426a4b0e13837c4bf [INFO] running `Command { std: "docker" "start" "-a" "45a020d6240573622333ac06afef11920fbba480e18f273426a4b0e13837c4bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45a020d6240573622333ac06afef11920fbba480e18f273426a4b0e13837c4bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45a020d6240573622333ac06afef11920fbba480e18f273426a4b0e13837c4bf", kill_on_drop: false }` [INFO] [stdout] 45a020d6240573622333ac06afef11920fbba480e18f273426a4b0e13837c4bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83cf2f3f5022c03ddfd72ae4b6da631da9da6ab16db1ee601bf5ed00edba4bab [INFO] running `Command { std: "docker" "start" "-a" "83cf2f3f5022c03ddfd72ae4b6da631da9da6ab16db1ee601bf5ed00edba4bab", kill_on_drop: false }` [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling dyn-clone v1.0.20 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling schemars_derive v1.0.4 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling schemars v0.8.22 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling schemars_derive v0.8.22 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling rmcp-macros v0.6.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling schemars v1.0.4 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling rmcp v0.6.0 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling mcp-markdown-tools v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NodeType` [INFO] [stdout] --> src/parser.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::mst::{ImageInfo, MSTNode, NodeType}; [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: `OpenOptions` [INFO] [stdout] --> src/utils.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{self, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NodeType` [INFO] [stdout] --> src/parser.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::mst::{ImageInfo, MSTNode, NodeType}; [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: `OpenOptions` [INFO] [stdout] --> src/utils.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{self, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/mst.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct NumberingInfo { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 69 | /// 编号路径 [1, 2, 1] 表示 1.2.1 [INFO] [stdout] 70 | pub path: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumberingInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_image`, `is_empty`, `walk`, and `walk_mut` are never used [INFO] [stdout] --> src/mst.rs:160:10 [INFO] [stdout] | [INFO] [stdout] 92 | impl MSTNode { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn is_image(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn walk(&self, callback: &mut F) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn walk_mut(&mut self, callback: &mut F) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_success_result` is never used [INFO] [stdout] --> src/utils.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn create_success_result(message: String) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_error_result` is never used [INFO] [stdout] --> src/utils.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn create_error_result(error_message: String) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 24s [INFO] running `Command { std: "docker" "inspect" "83cf2f3f5022c03ddfd72ae4b6da631da9da6ab16db1ee601bf5ed00edba4bab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83cf2f3f5022c03ddfd72ae4b6da631da9da6ab16db1ee601bf5ed00edba4bab", kill_on_drop: false }` [INFO] [stdout] 83cf2f3f5022c03ddfd72ae4b6da631da9da6ab16db1ee601bf5ed00edba4bab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 069d8c4fbb61c5950d55193e499ce53b84aae2fd5d7b5d42e2828bbea95b5ee4 [INFO] running `Command { std: "docker" "start" "-a" "069d8c4fbb61c5950d55193e499ce53b84aae2fd5d7b5d42e2828bbea95b5ee4", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rstest_macros v0.26.1 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling schemars v1.0.4 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling rmcp v0.6.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling retain_mut v0.1.9 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling deadpool v0.9.5 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling fragile v2.0.1 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling proptest v1.7.0 [INFO] [stderr] Compiling rstest v0.26.1 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling mcp-markdown-tools v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NodeType` [INFO] [stdout] --> src/parser.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::mst::{ImageInfo, MSTNode, NodeType}; [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: `OpenOptions` [INFO] [stdout] --> src/utils.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{self, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling wiremock v0.5.22 [INFO] [stdout] warning: unused import: `NodeType` [INFO] [stdout] --> src/parser.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::mst::{ImageInfo, MSTNode, NodeType}; [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: `OpenOptions` [INFO] [stdout] --> src/utils.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{self, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/mst.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct NumberingInfo { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 69 | /// 编号路径 [1, 2, 1] 表示 1.2.1 [INFO] [stdout] 70 | pub path: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NumberingInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_image`, `is_empty`, `walk`, and `walk_mut` are never used [INFO] [stdout] --> src/mst.rs:160:10 [INFO] [stdout] | [INFO] [stdout] 92 | impl MSTNode { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn is_image(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn walk(&self, callback: &mut F) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn walk_mut(&mut self, callback: &mut F) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_success_result` is never used [INFO] [stdout] --> src/utils.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn create_success_result(message: String) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_error_result` is never used [INFO] [stdout] --> src/utils.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn create_error_result(error_message: String) -> std::result::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling mockall v0.12.1 [INFO] [stdout] warning: unused import: `mock_server::*` [INFO] [stdout] --> tests/unit/../common/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use mock_server::*; [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: `TestFileManager` [INFO] [stdout] --> tests/unit/parser_tests.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::common::{test_data, TestFileManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assertions` [INFO] [stdout] --> tests/unit/validation_tests.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::common::{assertions, TestFileManager}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `png_data` [INFO] [stdout] --> tests/unit/../common/mock_server.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let png_data = self.create_test_png_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_png_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `webp_data` [INFO] [stdout] --> tests/unit/../common/mock_server.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let webp_data = self.create_test_webp_data(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_webp_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `svg_data` [INFO] [stdout] --> tests/unit/../common/mock_server.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let svg_data = self.create_test_svg_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_svg_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `helpers::*` [INFO] [stdout] --> tests/common/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use helpers::*; [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 variable: `png_data` [INFO] [stdout] --> tests/common/mock_server.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let png_data = self.create_test_png_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_png_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `webp_data` [INFO] [stdout] --> tests/common/mock_server.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let webp_data = self.create_test_webp_data(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_webp_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `svg_data` [INFO] [stdout] --> tests/common/mock_server.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let svg_data = self.create_test_svg_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_svg_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GenerateChapterConfig` and `LocalizeImagesConfig` [INFO] [stdout] --> tests/e2e/workflow_tests.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use mcp_markdown_tools::config::{GenerateChapterConfig, LocalizeImagesConfig, RemoveChapterConfig}; [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: `OpenOptions` [INFO] [stdout] --> src/utils.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{self, OpenOptions}; [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: `OpenOptions` [INFO] [stdout] --> src/utils.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs::{self, OpenOptions}; [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: `GenerateChapterConfig` [INFO] [stdout] --> tests/integration/numbering_integration_tests.rs:6:54 [INFO] [stdout] | [INFO] [stdout] 6 | use mcp_markdown_tools::config::{CheckHeadingConfig, GenerateChapterConfig, RemoveChapterConfig}; [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 variable: `png_data` [INFO] [stdout] --> tests/e2e/../common/mock_server.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let png_data = self.create_test_png_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_png_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `webp_data` [INFO] [stdout] --> tests/e2e/../common/mock_server.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let webp_data = self.create_test_webp_data(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_webp_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `svg_data` [INFO] [stdout] --> tests/e2e/../common/mock_server.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let svg_data = self.create_test_svg_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_svg_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `png_data` [INFO] [stdout] --> tests/integration/../common/mock_server.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let png_data = self.create_test_png_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_png_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `webp_data` [INFO] [stdout] --> tests/integration/../common/mock_server.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let webp_data = self.create_test_webp_data(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_webp_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `svg_data` [INFO] [stdout] --> tests/integration/../common/mock_server.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let svg_data = self.create_test_svg_data(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_svg_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_temp_md_file` and `assets_dir` are never used [INFO] [stdout] --> tests/unit/../common/helpers.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 14 | impl TestFileManager { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn create_temp_md_file(content: &str) -> NamedTempFile { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn assets_dir(&self) -> std::path::PathBuf { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImageLocalizationConfigBuilder` is never constructed [INFO] [stdout] --> tests/unit/../common/helpers.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct ImageLocalizationConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `file_name_pattern`, `image_dir`, `new_file_path`, and `build` are never used [INFO] [stdout] --> tests/unit/../common/helpers.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 90 | impl ImageLocalizationConfigBuilder { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 91 | pub fn new(file_path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn file_name_pattern(mut self, pattern: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn image_dir(mut self, dir: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn new_file_path(mut self, path: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn build(self) -> LocalizeImagesConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_dir_exists` is never used [INFO] [stdout] --> tests/unit/../common/helpers.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn assert_dir_exists(dir_path: &std::path::Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_file_count` is never used [INFO] [stdout] --> tests/unit/../common/helpers.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn assert_file_count(dir_path: &std::path::Path, expected_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOC_WITHOUT_IMAGES` is never used [INFO] [stdout] --> tests/unit/../common/helpers.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | pub const DOC_WITHOUT_IMAGES: &str = r#"# 无图片文档 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockHttpServer` is never constructed [INFO] [stdout] --> tests/unit/../common/mock_server.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MockHttpServer { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> tests/unit/../common/mock_server.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 12 | impl MockHttpServer { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 13 | /// 创建新的模拟服务器 [INFO] [stdout] 14 | pub async fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn url(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn mock_image_response(&self, path_str: &str, image_data: &[u8], content_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn mock_404_response(&self, path_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn mock_basic_images(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn mock_multiple_images(&self, count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn create_test_jpg_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn create_test_png_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn create_test_webp_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn create_test_svg_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestFileManager` is never constructed [INFO] [stdout] --> tests/common/helpers.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TestFileManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_md_file`, `create_temp_md_file`, and `assets_dir` are never used [INFO] [stdout] --> tests/common/helpers.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 14 | impl TestFileManager { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 15 | /// 创建新的测试文件管理器 [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn create_md_file(&self, filename: &str, content: &str) -> std::path::PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn create_temp_md_file(content: &str) -> NamedTempFile { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn assets_dir(&self) -> std::path::PathBuf { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumberingConfigBuilder` is never constructed [INFO] [stdout] --> tests/common/helpers.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct NumberingConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `ignore_h1`, `use_chinese_number`, `use_arabic_for_sublevel`, `save_as_new_file`, and `build` are never used [INFO] [stdout] --> tests/common/helpers.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 45 | impl NumberingConfigBuilder { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 46 | pub fn new(file_path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn ignore_h1(mut self, ignore: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn use_chinese_number(mut self, use_chinese: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn use_arabic_for_sublevel(mut self, use_arabic: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn save_as_new_file(mut self, new_file_path: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn build(self) -> GenerateChapterConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImageLocalizationConfigBuilder` is never constructed [INFO] [stdout] --> tests/common/helpers.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct ImageLocalizationConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `file_name_pattern`, `image_dir`, `new_file_path`, and `build` are never used [INFO] [stdout] --> tests/common/helpers.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 90 | impl ImageLocalizationConfigBuilder { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 91 | pub fn new(file_path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn file_name_pattern(mut self, pattern: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn image_dir(mut self, dir: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn new_file_path(mut self, path: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn build(self) -> LocalizeImagesConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_file_contains` is never used [INFO] [stdout] --> tests/common/helpers.rs:127:10 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn assert_file_contains(file_path: &std::path::Path, expected: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_file_not_contains` is never used [INFO] [stdout] --> tests/common/helpers.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn assert_file_not_contains(file_path: &std::path::Path, unexpected: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_dir_exists` is never used [INFO] [stdout] --> tests/common/helpers.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn assert_dir_exists(dir_path: &std::path::Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_file_count` is never used [INFO] [stdout] --> tests/common/helpers.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn assert_file_count(dir_path: &std::path::Path, expected_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIMPLE_DOC` is never used [INFO] [stdout] --> tests/common/helpers.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | pub const SIMPLE_DOC: &str = r#"# 第一章 介绍 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMPLEX_DOC` is never used [INFO] [stdout] --> tests/common/helpers.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | pub const COMPLEX_DOC: &str = r#"# 主标题 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doc_with_images` is never used [INFO] [stdout] --> tests/common/helpers.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn doc_with_images(base_url: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOC_WITHOUT_IMAGES` is never used [INFO] [stdout] --> tests/common/helpers.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | pub const DOC_WITHOUT_IMAGES: &str = r#"# 无图片文档 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mock_basic_images`, `mock_multiple_images`, `create_test_jpg_data`, `create_test_png_data`, `create_test_webp_data`, and `create_test_svg_data` are never used [INFO] [stdout] --> tests/common/mock_server.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 12 | impl MockHttpServer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn mock_basic_images(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn mock_multiple_images(&self, count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn create_test_jpg_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn create_test_png_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn create_test_webp_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn create_test_svg_data(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_temp_md_file` is never used [INFO] [stdout] --> tests/e2e/../common/helpers.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 14 | impl TestFileManager { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn create_temp_md_file(content: &str) -> NamedTempFile { [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 `file_name_pattern` and `new_file_path` are never used [INFO] [stdout] --> tests/e2e/../common/helpers.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 90 | impl ImageLocalizationConfigBuilder { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn file_name_pattern(mut self, pattern: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn new_file_path(mut self, path: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_file_count` is never used [INFO] [stdout] --> tests/e2e/../common/helpers.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn assert_file_count(dir_path: &std::path::Path, expected_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doc_with_images` is never used [INFO] [stdout] --> tests/e2e/../common/helpers.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn doc_with_images(base_url: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mock_404_response` and `mock_basic_images` are never used [INFO] [stdout] --> tests/e2e/../common/mock_server.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 12 | impl MockHttpServer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn mock_404_response(&self, path_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn mock_basic_images(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_temp_md_file` is never used [INFO] [stdout] --> tests/integration/../common/helpers.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 14 | impl TestFileManager { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn create_temp_md_file(content: &str) -> NamedTempFile { [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 `assert_file_count` is never used [INFO] [stdout] --> tests/integration/../common/helpers.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn assert_file_count(dir_path: &std::path::Path, expected_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mock_404_response` and `mock_multiple_images` are never used [INFO] [stdout] --> tests/integration/../common/mock_server.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 12 | impl MockHttpServer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub async fn mock_404_response(&self, path_str: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn mock_multiple_images(&self, count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_empty` is never used [INFO] [stdout] --> src/mst.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 92 | impl MSTNode { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2m 30s [INFO] running `Command { std: "docker" "inspect" "069d8c4fbb61c5950d55193e499ce53b84aae2fd5d7b5d42e2828bbea95b5ee4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "069d8c4fbb61c5950d55193e499ce53b84aae2fd5d7b5d42e2828bbea95b5ee4", kill_on_drop: false }` [INFO] [stdout] 069d8c4fbb61c5950d55193e499ce53b84aae2fd5d7b5d42e2828bbea95b5ee4