[INFO] cloning repository https://github.com/cloakwiss/mebook [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cloakwiss/mebook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcloakwiss%2Fmebook", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcloakwiss%2Fmebook'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 076372e70d625921674e53cef82d75ed7f536b3a [INFO] building cloakwiss/mebook against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcloakwiss%2Fmebook" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cloakwiss/mebook [INFO] finished tweaking git repo https://github.com/cloakwiss/mebook [INFO] tweaked toml for git repo https://github.com/cloakwiss/mebook written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cloakwiss/mebook 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/cloakwiss/mebook 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 servo_arc v0.2.0 [INFO] [stderr] Downloaded nodrop v0.1.14 [INFO] [stderr] Downloaded selectors v0.24.0 [INFO] [stderr] Downloaded derive_arbitrary v1.4.1 [INFO] [stderr] Downloaded phf_generator v0.8.0 [INFO] [stderr] Downloaded phf_codegen v0.8.0 [INFO] [stderr] Downloaded rand_pcg v0.2.1 [INFO] [stderr] Downloaded pin-project-internal v1.1.8 [INFO] [stderr] Downloaded cssparser v0.29.6 [INFO] [stderr] Downloaded pin-project v1.1.8 [INFO] [stderr] Downloaded lol_html v2.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] c0162d5542b2d991d59a4b6ba6d756018cbb6c0fa45ed404092f8d7691311d88 [INFO] running `Command { std: "docker" "start" "-a" "c0162d5542b2d991d59a4b6ba6d756018cbb6c0fa45ed404092f8d7691311d88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0162d5542b2d991d59a4b6ba6d756018cbb6c0fa45ed404092f8d7691311d88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0162d5542b2d991d59a4b6ba6d756018cbb6c0fa45ed404092f8d7691311d88", kill_on_drop: false }` [INFO] [stdout] c0162d5542b2d991d59a4b6ba6d756018cbb6c0fa45ed404092f8d7691311d88 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] e78b17013c531c2f8a201eadcd04dabbd1e8471e6911835f0d6043da3693123c [INFO] running `Command { std: "docker" "start" "-a" "e78b17013c531c2f8a201eadcd04dabbd1e8471e6911835f0d6043da3693123c", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling cc v1.2.9 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling servo_arc v0.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling miniz_oxide v0.8.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling zopfli v0.8.1 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling cssparser v0.29.6 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling pin-project v1.1.8 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling selectors v0.24.0 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling zip v2.2.2 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling lol_html v2.2.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling mebooks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/epub/remap.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panic; [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: `core::panic` [INFO] [stdout] --> src/serve.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path`, `collections::HashMap`, `future::Future`, `pin::Pin`, and `sync::Arc` [INFO] [stdout] --> src/serve.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | fmt::Debug, [INFO] [stdout] 12 | future::Future, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | net::{Ipv4Addr, SocketAddrV4}, [INFO] [stdout] 14 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | pin::Pin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | str::FromStr, [INFO] [stdout] 17 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reply::Response` [INFO] [stdout] --> src/serve.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 20 | use warp::{filters::path::FullPath, reply::Response, Filter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `pin::Pin`, `str::FromStr`, and `sync::Arc` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | pin::Pin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nav_type` [INFO] [stdout] --> src/epub.rs:129:20 [INFO] [stdout] | [INFO] [stdout] 129 | let (step, nav_type) = Self::parse_index_xml(manifest_file)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nav_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_guide` [INFO] [stdout] --> src/epub.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let raw_guide = section("guide"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_guide` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_collection` [INFO] [stdout] --> src/epub.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let raw_collection = section("collection"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nav_xhtml_path` is assigned to, but never used [INFO] [stdout] --> src/epub.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | let mut nav_xhtml_path = None; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_nav_xhtml_path` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `nav_xhtml_path` is never read [INFO] [stdout] --> src/epub.rs:223:25 [INFO] [stdout] | [INFO] [stdout] 223 | nav_xhtml_path = a.attribute("href").map(|x| x.to_string()); [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: variant `HtmlRewriteFailed` is never constructed [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 20 | enum MyError { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 38 | HtmlRewriteFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyError` has a derived impl for the trait `Debug`, but this is 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: function `find` is never used [INFO] [stdout] --> src/main.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | pub(crate) fn find<'a, K, V>(map: &'a [(K, V)], target: &K) -> Option<&'a (K, V)> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metadata` is never read [INFO] [stdout] --> src/epub.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct Manifest { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 19 | pub metadata: Vec<(String, String)>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Manifest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nav_xhtml` is never used [INFO] [stdout] --> src/epub.rs:265:4 [INFO] [stdout] | [INFO] [stdout] 265 | fn nav_xhtml() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `toc_ncx` is never used [INFO] [stdout] --> src/epub.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn toc_ncx(xml_rootnode: Node<'_, '_>) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rule` is never used [INFO] [stdout] --> src/epub/remap.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type Rule<'s, 'h> = ( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remap_assets` is never used [INFO] [stdout] --> src/epub/remap.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn remap_assets<'h, 's>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rewrite` is never used [INFO] [stdout] --> src/epub/remap.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | pub(crate) fn rewrite( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Theme` is never constructed [INFO] [stdout] --> src/serve/default_config.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Theme { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Font` is never used [INFO] [stdout] --> src/serve/default_config.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Font = (); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Fonts` is never used [INFO] [stdout] --> src/serve/default_config.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Fonts = Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorPalatte` is never constructed [INFO] [stdout] --> src/serve/default_config.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ColorPalatte {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColorMode` is never used [INFO] [stdout] --> src/serve/default_config.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum ColorMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.77s [INFO] running `Command { std: "docker" "inspect" "e78b17013c531c2f8a201eadcd04dabbd1e8471e6911835f0d6043da3693123c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e78b17013c531c2f8a201eadcd04dabbd1e8471e6911835f0d6043da3693123c", kill_on_drop: false }` [INFO] [stdout] e78b17013c531c2f8a201eadcd04dabbd1e8471e6911835f0d6043da3693123c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] cfd4a9473bf95ad0f79d1ef1c98c20309706fcd374d88efd0d391699060b36e2 [INFO] running `Command { std: "docker" "start" "-a" "cfd4a9473bf95ad0f79d1ef1c98c20309706fcd374d88efd0d391699060b36e2", kill_on_drop: false }` [INFO] [stderr] Compiling mebooks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/epub/remap.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::panic; [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: `core::panic` [INFO] [stdout] --> src/serve.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Path`, `collections::HashMap`, `future::Future`, `pin::Pin`, and `sync::Arc` [INFO] [stdout] --> src/serve.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | fmt::Debug, [INFO] [stdout] 12 | future::Future, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | net::{Ipv4Addr, SocketAddrV4}, [INFO] [stdout] 14 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | pin::Pin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | str::FromStr, [INFO] [stdout] 17 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reply::Response` [INFO] [stdout] --> src/serve.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 20 | use warp::{filters::path::FullPath, reply::Response, Filter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `pin::Pin`, `str::FromStr`, and `sync::Arc` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | pin::Pin, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nav_type` [INFO] [stdout] --> src/epub.rs:129:20 [INFO] [stdout] | [INFO] [stdout] 129 | let (step, nav_type) = Self::parse_index_xml(manifest_file)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nav_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_guide` [INFO] [stdout] --> src/epub.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let raw_guide = section("guide"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_guide` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_collection` [INFO] [stdout] --> src/epub.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | let raw_collection = section("collection"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nav_xhtml_path` is assigned to, but never used [INFO] [stdout] --> src/epub.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | let mut nav_xhtml_path = None; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_nav_xhtml_path` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `nav_xhtml_path` is never read [INFO] [stdout] --> src/epub.rs:223:25 [INFO] [stdout] | [INFO] [stdout] 223 | nav_xhtml_path = a.attribute("href").map(|x| x.to_string()); [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: variant `HtmlRewriteFailed` is never constructed [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 20 | enum MyError { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 38 | HtmlRewriteFailed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyError` has a derived impl for the trait `Debug`, but this is 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: function `find` is never used [INFO] [stdout] --> src/main.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | pub(crate) fn find<'a, K, V>(map: &'a [(K, V)], target: &K) -> Option<&'a (K, V)> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metadata` is never read [INFO] [stdout] --> src/epub.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct Manifest { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 19 | pub metadata: Vec<(String, String)>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Manifest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nav_xhtml` is never used [INFO] [stdout] --> src/epub.rs:265:4 [INFO] [stdout] | [INFO] [stdout] 265 | fn nav_xhtml() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `toc_ncx` is never used [INFO] [stdout] --> src/epub.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn toc_ncx(xml_rootnode: Node<'_, '_>) -> Result, MyError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Rule` is never used [INFO] [stdout] --> src/epub/remap.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type Rule<'s, 'h> = ( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remap_assets` is never used [INFO] [stdout] --> src/epub/remap.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn remap_assets<'h, 's>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rewrite` is never used [INFO] [stdout] --> src/epub/remap.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | pub(crate) fn rewrite( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Theme` is never constructed [INFO] [stdout] --> src/serve/default_config.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Theme { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Font` is never used [INFO] [stdout] --> src/serve/default_config.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type Font = (); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Fonts` is never used [INFO] [stdout] --> src/serve/default_config.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type Fonts = Vec; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorPalatte` is never constructed [INFO] [stdout] --> src/serve/default_config.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ColorPalatte {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColorMode` is never used [INFO] [stdout] --> src/serve/default_config.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum ColorMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.89s [INFO] running `Command { std: "docker" "inspect" "cfd4a9473bf95ad0f79d1ef1c98c20309706fcd374d88efd0d391699060b36e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfd4a9473bf95ad0f79d1ef1c98c20309706fcd374d88efd0d391699060b36e2", kill_on_drop: false }` [INFO] [stdout] cfd4a9473bf95ad0f79d1ef1c98c20309706fcd374d88efd0d391699060b36e2