[INFO] cloning repository https://github.com/ganity/rust-hexo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ganity/rust-hexo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganity%2Frust-hexo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganity%2Frust-hexo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 01132cce0c4d68ef76ba9562a9e13c68c14221aa
[INFO] checking ganity/rust-hexo against master#3645249d79dfb136b5d8de3ce153d19d6698d92d for pr-153975
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganity%2Frust-hexo" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ganity/rust-hexo
[INFO] finished tweaking git repo https://github.com/ganity/rust-hexo
[INFO] tweaked toml for git repo https://github.com/ganity/rust-hexo written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ganity/rust-hexo on toolchain 3645249d79dfb136b5d8de3ce153d19d6698d92d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3645249d79dfb136b5d8de3ce153d19d6698d92d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ganity/rust-hexo 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" "+3645249d79dfb136b5d8de3ce153d19d6698d92d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded chrono-tz-build v0.3.0
[INFO] [stderr]   Downloaded slug v0.1.6
[INFO] [stderr]   Downloaded gray_matter v0.2.8
[INFO] [stderr]   Downloaded tera v1.20.0
[INFO] [stderr]   Downloaded parse-zoneinfo v0.3.1
[INFO] [stderr]   Downloaded deunicode v1.6.0
[INFO] [stderr]   Downloaded chrono-tz v0.9.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3645249d79dfb136b5d8de3ce153d19d6698d92d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 312391e7bdd6d08232111d08add5c354ac869eb472480602e6486defbdda2438
[INFO] running `Command { std: "docker" "start" "-a" "312391e7bdd6d08232111d08add5c354ac869eb472480602e6486defbdda2438", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "312391e7bdd6d08232111d08add5c354ac869eb472480602e6486defbdda2438", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "312391e7bdd6d08232111d08add5c354ac869eb472480602e6486defbdda2438", kill_on_drop: false }`
[INFO] [stdout] 312391e7bdd6d08232111d08add5c354ac869eb472480602e6486defbdda2438
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3645249d79dfb136b5d8de3ce153d19d6698d92d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7bca25d47c780c89d1a843e3a3087f55512abe8671fcbfc5f5830410ea6dd47a
[INFO] running `Command { std: "docker" "start" "-a" "7bca25d47c780c89d1a843e3a3087f55512abe8671fcbfc5f5830410ea6dd47a", kill_on_drop: false }`
[INFO] [stderr]     Checking once_cell v1.21.0
[INFO] [stderr]     Checking log v0.4.26
[INFO] [stderr]     Checking smallvec v1.14.0
[INFO] [stderr]    Compiling regex-syntax v0.8.5
[INFO] [stderr]    Compiling phf_shared v0.11.3
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]     Checking socket2 v0.5.8
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking iana-time-zone v0.1.61
[INFO] [stderr]    Compiling zerocopy v0.8.23
[INFO] [stderr]     Checking icu_locid_transform v1.5.0
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]     Checking indexmap v2.8.0
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]    Compiling phf v0.11.3
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking bstr v1.11.3
[INFO] [stderr]     Checking unic-char-range v0.9.0
[INFO] [stderr]     Checking unic-common v0.9.0
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]    Compiling libm v0.2.11
[INFO] [stderr]     Checking icu_properties v1.5.1
[INFO] [stderr]     Checking unic-char-property v0.9.0
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking unic-ucd-version v0.9.0
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]     Checking unic-ucd-segment v0.9.0
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking tokio v1.44.0
[INFO] [stderr]     Checking quick-xml v0.37.2
[INFO] [stderr]    Compiling async-trait v0.1.87
[INFO] [stderr]    Compiling phf_generator v0.11.3
[INFO] [stderr]     Checking inotify-sys v0.1.5
[INFO] [stderr]    Compiling anyhow v1.0.97
[INFO] [stderr]    Compiling phf_codegen v0.11.3
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking deunicode v1.6.0
[INFO] [stderr]     Checking hashlink v0.8.4
[INFO] [stderr]    Compiling pulldown-cmark v0.9.6
[INFO] [stderr]     Checking winnow v0.7.4
[INFO] [stderr]     Checking never v0.1.0
[INFO] [stderr]     Checking humansize v2.1.3
[INFO] [stderr]     Checking clap_builder v4.5.32
[INFO] [stderr]     Checking inotify v0.9.6
[INFO] [stderr]     Checking slug v0.1.6
[INFO] [stderr]    Compiling semver v1.0.26
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]     Checking getopts v0.2.21
[INFO] [stderr]     Checking yaml-rust2 v0.8.1
[INFO] [stderr]     Checking unic-segment v0.9.0
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling pest v2.7.15
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking mio v0.8.11
[INFO] [stderr]     Checking filetime v0.2.25
[INFO] [stderr]     Checking crossbeam-channel v0.5.14
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]     Checking http-range-header v0.4.2
[INFO] [stderr]     Checking fixedbitset v0.4.2
[INFO] [stderr]     Checking notify v6.1.1
[INFO] [stderr]     Checking petgraph v0.6.5
[INFO] [stderr]     Checking icu_normalizer v1.5.0
[INFO] [stderr]     Checking globset v0.4.16
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]    Compiling parse-zoneinfo v0.3.1
[INFO] [stderr]     Checking ignore v0.4.23
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.19
[INFO] [stderr]    Compiling chrono-tz-build v0.3.0
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking clap v4.5.32
[INFO] [stderr]    Compiling pest_meta v2.7.15
[INFO] [stderr]     Checking globwalk v0.9.1
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking chrono v0.4.40
[INFO] [stderr]     Checking toml_datetime v0.6.8
[INFO] [stderr]     Checking serde_spanned v0.6.8
[INFO] [stderr]    Compiling chrono-tz v0.9.0
[INFO] [stderr]     Checking serde_path_to_error v0.1.17
[INFO] [stderr]     Checking toml v0.5.11
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking toml_edit v0.22.24
[INFO] [stderr]     Checking serde_yaml v0.9.34+deprecated
[INFO] [stderr]    Compiling darling_macro v0.20.10
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking colored v2.2.0
[INFO] [stderr]     Checking libloading v0.8.6
[INFO] [stderr]    Compiling darling v0.20.10
[INFO] [stderr]    Compiling derive_builder_core v0.20.2
[INFO] [stderr]    Compiling pest_generator v2.7.15
[INFO] [stderr]    Compiling pest_derive v2.7.15
[INFO] [stderr]    Compiling derive_builder_macro v0.20.2
[INFO] [stderr]     Checking gray_matter v0.2.8
[INFO] [stderr]     Checking derive_builder v0.20.2
[INFO] [stderr]     Checking hyper v1.6.0
[INFO] [stderr]     Checking tokio-util v0.7.13
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking diligent-date-parser v0.1.5
[INFO] [stderr]     Checking atom_syndication v0.12.7
[INFO] [stderr]     Checking tower-http v0.5.2
[INFO] [stderr]     Checking hyper-util v0.1.10
[INFO] [stderr]     Checking rss v2.0.12
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]     Checking toml v0.8.20
[INFO] [stderr]     Checking tera v1.20.0
[INFO] [stderr]     Checking rust-hexo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::sync::mpsc`
[INFO] [stdout]  --> src/core/engine.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::sync::mpsc;
[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 imports: `Config as NotifyConfig`, `Event`, `RecommendedWatcher`, and `RecursiveMode`
[INFO] [stdout]   --> src/core/engine.rs:13:14
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `YamlLoader` and `Yaml`
[INFO] [stdout]   --> src/core/engine.rs:17:18
[INFO] [stdout]    |
[INFO] [stdout] 17 | use yaml_rust2::{YamlLoader, Yaml};
[INFO] [stdout]    |                  ^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Options`, `Parser`, and `html`
[INFO] [stdout]   --> src/core/engine.rs:20:22
[INFO] [stdout]    |
[INFO] [stdout] 20 | use pulldown_cmark::{html, Options, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File`, `Path`, and `self`
[INFO] [stdout]  --> src/core/generator.rs:2:16
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fs::{self, File},
[INFO] [stdout]   |                ^^^^
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |          ^^^^
[INFO] [stdout] 4 |     path::{Path, PathBuf},
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, and `Local`
[INFO] [stdout]  --> src/core/generator.rs:9:14
[INFO] [stdout]   |
[INFO] [stdout] 9 | use chrono::{DateTime, Utc, Datelike, FixedOffset, TimeZone, Local};
[INFO] [stdout]   |              ^^^^^^^^                 ^^^^^^^^^^^            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Parser` and `html`
[INFO] [stdout]   --> src/core/generator.rs:10:22
[INFO] [stdout]    |
[INFO] [stdout] 10 | use pulldown_cmark::{html, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FeedBuilder`
[INFO] [stdout]   --> src/core/generator.rs:12:30
[INFO] [stdout]    |
[INFO] [stdout] 12 | use atom_syndication::{Feed, FeedBuilder, Entry, Text};
[INFO] [stdout]    |                              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ChannelBuilder`
[INFO] [stdout]   --> src/core/generator.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use rss::{Channel, ChannelBuilder, Item, Guid};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]   --> src/core/generator.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use serde_json::{json, Value};
[INFO] [stdout]    |                        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `url::Url`
[INFO] [stdout]   --> src/core/generator.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use url::Url;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PluginError`
[INFO] [stdout]   --> src/core/generator.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         PluginError,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Path`
[INFO] [stdout]  --> src/plugins/mod.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::{Path, PathBuf};
[INFO] [stdout]   |                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/plugins/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/plugins/error.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/plugins/error.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context`
[INFO] [stdout]  --> src/theme/renderer.rs:1:14
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Context, Result, anyhow};
[INFO] [stdout]   |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context as TeraContext`
[INFO] [stdout]  --> src/theme/renderer.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tera::{Context as TeraContext, Tera};
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Utc`
[INFO] [stdout]  --> src/theme/renderer.rs:7:24
[INFO] [stdout]   |
[INFO] [stdout] 7 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |                        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc`
[INFO] [stdout]  --> src/core/engine.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::sync::mpsc;
[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 imports: `Config as NotifyConfig`, `Event`, `RecommendedWatcher`, and `RecursiveMode`
[INFO] [stdout]   --> src/core/engine.rs:13:14
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `YamlLoader` and `Yaml`
[INFO] [stdout]   --> src/core/engine.rs:17:18
[INFO] [stdout]    |
[INFO] [stdout] 17 | use yaml_rust2::{YamlLoader, Yaml};
[INFO] [stdout]    |                  ^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Options`, `Parser`, and `html`
[INFO] [stdout]   --> src/core/engine.rs:20:22
[INFO] [stdout]    |
[INFO] [stdout] 20 | use pulldown_cmark::{html, Options, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File`, `Path`, and `self`
[INFO] [stdout]  --> src/core/generator.rs:2:16
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fs::{self, File},
[INFO] [stdout]   |                ^^^^
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |          ^^^^
[INFO] [stdout] 4 |     path::{Path, PathBuf},
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, and `Local`
[INFO] [stdout]  --> src/core/generator.rs:9:14
[INFO] [stdout]   |
[INFO] [stdout] 9 | use chrono::{DateTime, Utc, Datelike, FixedOffset, TimeZone, Local};
[INFO] [stdout]   |              ^^^^^^^^                 ^^^^^^^^^^^            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Parser` and `html`
[INFO] [stdout]   --> src/core/generator.rs:10:22
[INFO] [stdout]    |
[INFO] [stdout] 10 | use pulldown_cmark::{html, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FeedBuilder`
[INFO] [stdout]   --> src/core/generator.rs:12:30
[INFO] [stdout]    |
[INFO] [stdout] 12 | use atom_syndication::{Feed, FeedBuilder, Entry, Text};
[INFO] [stdout]    |                              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ChannelBuilder`
[INFO] [stdout]   --> src/core/generator.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use rss::{Channel, ChannelBuilder, Item, Guid};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]   --> src/core/generator.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use serde_json::{json, Value};
[INFO] [stdout]    |                        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `url::Url`
[INFO] [stdout]   --> src/core/generator.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use url::Url;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PluginError`
[INFO] [stdout]   --> src/core/generator.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         PluginError,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Path`
[INFO] [stdout]  --> src/plugins/mod.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::{Path, PathBuf};
[INFO] [stdout]   |                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/plugins/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/plugins/error.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/plugins/error.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context`
[INFO] [stdout]  --> src/theme/renderer.rs:1:14
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Context, Result, anyhow};
[INFO] [stdout]   |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context as TeraContext`
[INFO] [stdout]  --> src/theme/renderer.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tera::{Context as TeraContext, Tera};
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Utc`
[INFO] [stdout]  --> src/theme/renderer.rs:7:24
[INFO] [stdout]   |
[INFO] [stdout] 7 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |                        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/core/engine.rs:798:13
[INFO] [stdout]     |
[INFO] [stdout] 798 |         let mut watcher_config = Config::default();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/core/engine.rs:798:13
[INFO] [stdout]     |
[INFO] [stdout] 798 |         let mut watcher_config = Config::default();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]    --> src/core/generator.rs:813:64
[INFO] [stdout]     |
[INFO] [stdout] 813 |                 if let Some(naive_dt) = chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0) {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]    --> src/core/generator.rs:813:64
[INFO] [stdout]     |
[INFO] [stdout] 813 |                 if let Some(naive_dt) = chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0) {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Watcher`
[INFO] [stdout]   --> src/core/engine.rs:13:80
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |                                                                                ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude`
[INFO] [stdout]   --> src/core/engine.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rayon::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/core/generator.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |                ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Watcher`
[INFO] [stdout]   --> src/core/engine.rs:13:80
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |                                                                                ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude`
[INFO] [stdout]   --> src/core/engine.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rayon::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/core/generator.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |                ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `load_theme_config`, `create_site_config`, `copy_static_files`, and `copy_theme_assets` are never used
[INFO] [stdout]    --> src/core/engine.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl Engine {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn load_theme_config(theme_dir: &Path, site_config: &Config) -> Result<HashMap<String, Value>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 547 |     fn create_site_config(&self) -> Result<SiteConfig> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 634 |     fn copy_static_files(&self) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 662 |     fn copy_theme_assets(&self) -> Result<()> {
[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 `count_words` is never used
[INFO] [stdout]     --> src/core/generator.rs:1164:4
[INFO] [stdout]      |
[INFO] [stdout] 1164 | fn count_words(content: &str) -> usize {
[INFO] [stdout]      |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `word_count_function` and `reading_time_function` are never used
[INFO] [stdout]    --> src/theme/renderer.rs:221:8
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl ThemeRenderer {
[INFO] [stdout]     | ------------------ associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 221 |     fn word_count_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 245 |     fn reading_time_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `load_theme_config`, `create_site_config`, `copy_static_files`, and `copy_theme_assets` are never used
[INFO] [stdout]    --> src/core/engine.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl Engine {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn load_theme_config(theme_dir: &Path, site_config: &Config) -> Result<HashMap<String, Value>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 547 |     fn create_site_config(&self) -> Result<SiteConfig> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 634 |     fn copy_static_files(&self) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 662 |     fn copy_theme_assets(&self) -> Result<()> {
[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 `count_words` is never used
[INFO] [stdout]     --> src/core/generator.rs:1164:4
[INFO] [stdout]      |
[INFO] [stdout] 1164 | fn count_words(content: &str) -> usize {
[INFO] [stdout]      |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `word_count_function` and `reading_time_function` are never used
[INFO] [stdout]    --> src/theme/renderer.rs:221:8
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl ThemeRenderer {
[INFO] [stdout]     | ------------------ associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 221 |     fn word_count_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 245 |     fn reading_time_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::PathBuf`
[INFO] [stdout]  --> tests/generator_test.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::path::PathBuf;
[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: `File`
[INFO] [stdout]  --> src/cli/commands.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs::{self, File};
[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: `std::io::Write`
[INFO] [stdout]  --> src/cli/commands.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc`
[INFO] [stdout]  --> src/core/engine.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::sync::mpsc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Config as NotifyConfig`, `Event`, `RecommendedWatcher`, and `RecursiveMode`
[INFO] [stdout]   --> src/core/engine.rs:13:14
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `YamlLoader` and `Yaml`
[INFO] [stdout]   --> src/core/engine.rs:17:18
[INFO] [stdout]    |
[INFO] [stdout] 17 | use yaml_rust2::{YamlLoader, Yaml};
[INFO] [stdout]    |                  ^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Options`, `Parser`, and `html`
[INFO] [stdout]   --> src/core/engine.rs:20:22
[INFO] [stdout]    |
[INFO] [stdout] 20 | use pulldown_cmark::{html, Options, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File`, `Path`, and `self`
[INFO] [stdout]  --> src/core/generator.rs:2:16
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fs::{self, File},
[INFO] [stdout]   |                ^^^^
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |          ^^^^
[INFO] [stdout] 4 |     path::{Path, PathBuf},
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, and `Local`
[INFO] [stdout]  --> src/core/generator.rs:9:14
[INFO] [stdout]   |
[INFO] [stdout] 9 | use chrono::{DateTime, Utc, Datelike, FixedOffset, TimeZone, Local};
[INFO] [stdout]   |              ^^^^^^^^                 ^^^^^^^^^^^            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Parser` and `html`
[INFO] [stdout]   --> src/core/generator.rs:10:22
[INFO] [stdout]    |
[INFO] [stdout] 10 | use pulldown_cmark::{html, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FeedBuilder`
[INFO] [stdout]   --> src/core/generator.rs:12:30
[INFO] [stdout]    |
[INFO] [stdout] 12 | use atom_syndication::{Feed, FeedBuilder, Entry, Text};
[INFO] [stdout]    |                              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ChannelBuilder`
[INFO] [stdout]   --> src/core/generator.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use rss::{Channel, ChannelBuilder, Item, Guid};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]   --> src/core/generator.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use serde_json::{json, Value};
[INFO] [stdout]    |                        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `url::Url`
[INFO] [stdout]   --> src/core/generator.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use url::Url;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PluginError`
[INFO] [stdout]   --> src/core/generator.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         PluginError,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `generator::HtmlGenerator`
[INFO] [stdout]  --> src/core/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use generator::HtmlGenerator;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server::Server`
[INFO] [stdout]  --> src/core/mod.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub use server::Server;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `search::SearchIndexGenerator`
[INFO] [stdout]  --> src/core/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use search::SearchIndexGenerator; 
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `config::Config`
[INFO] [stdout]  --> src/models/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use config::Config;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GeneratorResult`, `Locals`, `RenderData`, and `SiteLocals`
[INFO] [stdout]  --> src/models/mod.rs:5:56
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use types::{Post, Page, Category, Tag, SiteConfig, Locals, SiteLocals, RenderData, GeneratorResult}; 
[INFO] [stdout]   |                                                        ^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context`
[INFO] [stdout]  --> src/theme/renderer.rs:1:14
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Context, Result, anyhow};
[INFO] [stdout]   |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context as TeraContext`
[INFO] [stdout]  --> src/theme/renderer.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tera::{Context as TeraContext, Tera};
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Utc`
[INFO] [stdout]  --> src/theme/renderer.rs:7:24
[INFO] [stdout]   |
[INFO] [stdout] 7 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |                        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Path`
[INFO] [stdout]  --> src/plugins/mod.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::{Path, PathBuf};
[INFO] [stdout]   |                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/plugins/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/plugins/error.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/plugins/error.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `File`
[INFO] [stdout]  --> src/cli/commands.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs::{self, File};
[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: `std::io::Write`
[INFO] [stdout]  --> src/cli/commands.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc`
[INFO] [stdout]  --> src/core/engine.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::sync::mpsc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Config as NotifyConfig`, `Event`, `RecommendedWatcher`, and `RecursiveMode`
[INFO] [stdout]   --> src/core/engine.rs:13:14
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `YamlLoader` and `Yaml`
[INFO] [stdout]   --> src/core/engine.rs:17:18
[INFO] [stdout]    |
[INFO] [stdout] 17 | use yaml_rust2::{YamlLoader, Yaml};
[INFO] [stdout]    |                  ^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Options`, `Parser`, and `html`
[INFO] [stdout]   --> src/core/engine.rs:20:22
[INFO] [stdout]    |
[INFO] [stdout] 20 | use pulldown_cmark::{html, Options, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File`, `Path`, and `self`
[INFO] [stdout]  --> src/core/generator.rs:2:16
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fs::{self, File},
[INFO] [stdout]   |                ^^^^
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |          ^^^^
[INFO] [stdout] 4 |     path::{Path, PathBuf},
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, and `Local`
[INFO] [stdout]  --> src/core/generator.rs:9:14
[INFO] [stdout]   |
[INFO] [stdout] 9 | use chrono::{DateTime, Utc, Datelike, FixedOffset, TimeZone, Local};
[INFO] [stdout]   |              ^^^^^^^^                 ^^^^^^^^^^^            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Parser` and `html`
[INFO] [stdout]   --> src/core/generator.rs:10:22
[INFO] [stdout]    |
[INFO] [stdout] 10 | use pulldown_cmark::{html, Parser};
[INFO] [stdout]    |                      ^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FeedBuilder`
[INFO] [stdout]   --> src/core/generator.rs:12:30
[INFO] [stdout]    |
[INFO] [stdout] 12 | use atom_syndication::{Feed, FeedBuilder, Entry, Text};
[INFO] [stdout]    |                              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ChannelBuilder`
[INFO] [stdout]   --> src/core/generator.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use rss::{Channel, ChannelBuilder, Item, Guid};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]   --> src/core/generator.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use serde_json::{json, Value};
[INFO] [stdout]    |                        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `url::Url`
[INFO] [stdout]   --> src/core/generator.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use url::Url;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PluginError`
[INFO] [stdout]   --> src/core/generator.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         PluginError,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `generator::HtmlGenerator`
[INFO] [stdout]  --> src/core/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use generator::HtmlGenerator;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `server::Server`
[INFO] [stdout]  --> src/core/mod.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub use server::Server;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `search::SearchIndexGenerator`
[INFO] [stdout]  --> src/core/mod.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use search::SearchIndexGenerator; 
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `config::Config`
[INFO] [stdout]  --> src/models/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use config::Config;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GeneratorResult`, `Locals`, `RenderData`, and `SiteLocals`
[INFO] [stdout]  --> src/models/mod.rs:5:56
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use types::{Post, Page, Category, Tag, SiteConfig, Locals, SiteLocals, RenderData, GeneratorResult}; 
[INFO] [stdout]   |                                                        ^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context`
[INFO] [stdout]  --> src/theme/renderer.rs:1:14
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Context, Result, anyhow};
[INFO] [stdout]   |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Context as TeraContext`
[INFO] [stdout]  --> src/theme/renderer.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tera::{Context as TeraContext, Tera};
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Utc`
[INFO] [stdout]  --> src/theme/renderer.rs:7:24
[INFO] [stdout]   |
[INFO] [stdout] 7 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |                        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Path`
[INFO] [stdout]  --> src/plugins/mod.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::path::{Path, PathBuf};
[INFO] [stdout]   |                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/plugins/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/plugins/error.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/plugins/error.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/core/engine.rs:798:13
[INFO] [stdout]     |
[INFO] [stdout] 798 |         let mut watcher_config = Config::default();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/core/engine.rs:798:13
[INFO] [stdout]     |
[INFO] [stdout] 798 |         let mut watcher_config = Config::default();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]    --> src/core/generator.rs:813:64
[INFO] [stdout]     |
[INFO] [stdout] 813 |                 if let Some(naive_dt) = chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0) {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]    --> src/core/generator.rs:813:64
[INFO] [stdout]     |
[INFO] [stdout] 813 |                 if let Some(naive_dt) = chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0) {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Watcher`
[INFO] [stdout]   --> src/core/engine.rs:13:80
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |                                                                                ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude`
[INFO] [stdout]   --> src/core/engine.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rayon::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/core/generator.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |                ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Watcher`
[INFO] [stdout]   --> src/core/engine.rs:13:80
[INFO] [stdout]    |
[INFO] [stdout] 13 | use notify::{Config as NotifyConfig, Event, RecommendedWatcher, RecursiveMode, Watcher};
[INFO] [stdout]    |                                                                                ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rayon::prelude`
[INFO] [stdout]   --> src/core/engine.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rayon::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/core/generator.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 |     io::{self, Write as IoWrite},
[INFO] [stdout]   |                ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `scaffold_dir` and `theme_config` are never read
[INFO] [stdout]   --> src/core/engine.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct Engine {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub scaffold_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub theme_config: HashMap<String, Value>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Engine` has a derived impl for the trait `Clone`, 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: multiple associated items are never used
[INFO] [stdout]    --> src/core/engine.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl Engine {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn load_theme_config(theme_dir: &Path, site_config: &Config) -> Result<HashMap<String, Value>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 235 |     pub fn load_config(&mut self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub async fn run(&mut self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 547 |     fn create_site_config(&self) -> Result<SiteConfig> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 634 |     fn copy_static_files(&self) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 662 |     fn copy_theme_assets(&self) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 698 |     pub fn cleanup(&mut self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `cleanup` are never used
[INFO] [stdout]    --> src/core/generator.rs:45:12
[INFO] [stdout]     |
[INFO] [stdout]  43 | impl HtmlGenerator {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout]  44 |     /// 创建新的 HTML 生成器
[INFO] [stdout]  45 |     pub fn new(output_dir: PathBuf, config: Config, base_dir: PathBuf) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub fn cleanup(&self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_words` is never used
[INFO] [stdout]     --> src/core/generator.rs:1164:4
[INFO] [stdout]      |
[INFO] [stdout] 1164 | fn count_words(content: &str) -> usize {
[INFO] [stdout]      |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `tx` is never read
[INFO] [stdout]   --> src/core/server.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Server {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     tx: broadcast::Sender<()>,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_sender` is never used
[INFO] [stdout]   --> src/core/server.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Server {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn get_sender(&self) -> broadcast::Sender<()> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `save_to_file` and `save` are never used
[INFO] [stdout]    --> src/models/config.rs:168:12
[INFO] [stdout]     |
[INFO] [stdout] 154 | impl Config {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 168 |     pub fn save_to_file(&self, path: &Path) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 175 |     pub fn save(&self, path: &Path) -> Result<()> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SiteConfig` is never constructed
[INFO] [stdout]   --> src/models/types.rs:98:12
[INFO] [stdout]    |
[INFO] [stdout] 98 | pub struct SiteConfig {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CommentsConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 134 | pub struct CommentsConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GiscusConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:147:12
[INFO] [stdout]     |
[INFO] [stdout] 147 | pub struct GiscusConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DisqusConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:162:12
[INFO] [stdout]     |
[INFO] [stdout] 162 | pub struct DisqusConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SearchConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:168:12
[INFO] [stdout]     |
[INFO] [stdout] 168 | pub struct SearchConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Locals` is never constructed
[INFO] [stdout]    --> src/models/types.rs:199:12
[INFO] [stdout]     |
[INFO] [stdout] 199 | pub struct Locals {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SiteLocals` is never constructed
[INFO] [stdout]    --> src/models/types.rs:218:12
[INFO] [stdout]     |
[INFO] [stdout] 218 | pub struct SiteLocals {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RenderData` is never constructed
[INFO] [stdout]    --> src/models/types.rs:231:12
[INFO] [stdout]     |
[INFO] [stdout] 231 | pub struct RenderData {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GeneratorResult` is never constructed
[INFO] [stdout]    --> src/models/types.rs:244:12
[INFO] [stdout]     |
[INFO] [stdout] 244 | pub struct GeneratorResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `theme_dir`, `tera`, `config`, and `plugin_manager` are never read
[INFO] [stdout]   --> src/theme/renderer.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct ThemeRenderer {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 13 |     /// 主题目录
[INFO] [stdout] 14 |     pub theme_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 15 |     /// 模板引擎
[INFO] [stdout] 16 |     pub tera: Tera,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 17 |     /// 主题配置
[INFO] [stdout] 18 |     pub config: Config,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 19 |     /// 插件管理器
[INFO] [stdout] 20 |     pub plugin_manager: Option<PluginManager>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ThemeRenderer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/theme/renderer.rs:48:12
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl ThemeRenderer {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  48 |     pub fn set_plugin_manager(&mut self, plugin_manager: PluginManager) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  76 |     pub fn render(&self, template: &str, context: &HashMap<String, serde_yaml::Value>) -> Result<String> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 |     pub fn available_layouts(&self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 154 |     pub fn has_layout(&self, layout: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub fn source_dir(&self) -> PathBuf {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn reload_templates(&mut self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 |     pub fn render_template(&self, template_name: &str, context: &tera::Context) -> Result<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |     fn word_count_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 245 |     fn reading_time_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `tera_yaml_to_value` is never used
[INFO] [stdout]    --> src/theme/renderer.rs:280:4
[INFO] [stdout]     |
[INFO] [stdout] 280 | fn tera_yaml_to_value(yaml: &serde_yaml::Value) -> Result<tera::Value> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `JSON`, `YAML`, `CSS`, `JavaScript`, and `Plain` are never constructed
[INFO] [stdout]   --> src/plugins/mod.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub enum ContentType {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 21 |     JSON,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 22 |     YAML,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 23 |     CSS,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 24 |     JavaScript,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 25 |     Plain,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ContentType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResourceLocation` is never used
[INFO] [stdout]   --> src/plugins/mod.rs:33:10
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub enum ResourceLocation {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/plugins/mod.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct PluginContext {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 41 |     /// 基础目录
[INFO] [stdout] 42 |     pub base_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 43 |     /// 插件目录
[INFO] [stdout] 44 |     pub plugins_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 45 |     /// 主题目录
[INFO] [stdout] 46 |     pub theme_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 47 |     /// 基础URL
[INFO] [stdout] 48 |     pub base_url: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 49 |     /// 输出目录
[INFO] [stdout] 50 |     pub output_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 51 |     /// 站点配置
[INFO] [stdout] 52 |     pub config: crate::models::config::Config,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 53 |     /// 所有文章
[INFO] [stdout] 54 |     pub posts: Vec<crate::models::Post>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 55 |     /// 所有页面
[INFO] [stdout] 56 |     pub pages: Vec<crate::models::Page>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 57 |     /// 所有分类
[INFO] [stdout] 58 |     pub categories: Vec<crate::models::Category>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 59 |     /// 所有标签
[INFO] [stdout] 60 |     pub tags: Vec<crate::models::Tag>,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 61 |     /// 当前处理的文章
[INFO] [stdout] 62 |     pub current_post: Option<crate::models::Post>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 63 |     /// 当前处理的页面
[INFO] [stdout] 64 |     pub current_page: Option<crate::models::Page>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PluginContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_resources` and `cleanup` are never used
[INFO] [stdout]    --> src/plugins/mod.rs:107:8
[INFO] [stdout]     |
[INFO] [stdout]  87 | pub trait Plugin: Send + Sync {
[INFO] [stdout]     |           ------ methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 107 |     fn get_resources(&self) -> Vec<(String, ResourceLocation)> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 117 |     fn cleanup(&self) -> Result<()>;
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `watcher` is never read
[INFO] [stdout]    --> src/plugins/mod.rs:133:9
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub struct PluginManager {
[INFO] [stdout]     |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 133 |     pub watcher: Option<Box<dyn std::any::Any + Send>>,
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cleanup` is never used
[INFO] [stdout]    --> src/plugins/mod.rs:503:12
[INFO] [stdout]     |
[INFO] [stdout] 155 | impl PluginManager {
[INFO] [stdout]     | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 503 |     pub fn cleanup(&self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/plugins/error.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub enum PluginError {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout]  8 |     #[error("版本错误: {message}")]
[INFO] [stdout]  9 |     VersionError {
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     CleanupError {
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     DependencyError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     ConfigError {
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     FunctionRegistrationError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     FilterRegistrationError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     ResourceError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     ContentProcessingError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 68 |     Other(String),
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PluginError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]    --> src/plugins/error.rs:75:5
[INFO] [stdout]     |
[INFO] [stdout]  73 | pub enum PluginHook {
[INFO] [stdout]     |          ---------- variants in this enum
[INFO] [stdout]  74 |     /// 初始化
[INFO] [stdout]  75 |     Init,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  81 |     BeforeDeploy,
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout]  82 |     /// 部署后
[INFO] [stdout]  83 |     AfterDeploy,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout]  84 |     /// 新建文章
[INFO] [stdout]  85 |     NewPost,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]  86 |     /// 新建页面
[INFO] [stdout]  87 |     NewPage,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]  88 |     /// 清理
[INFO] [stdout]  89 |     Clean,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]  90 |     /// 配置变更
[INFO] [stdout]  91 |     ConfigChanged,
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout]  92 |     /// 文章渲染前
[INFO] [stdout]  93 |     BeforePostRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]  94 |     /// 文章渲染后
[INFO] [stdout]  95 |     AfterPostRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^
[INFO] [stdout]  96 |     /// 页面渲染前
[INFO] [stdout]  97 |     BeforePageRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]  98 |     /// 页面渲染后
[INFO] [stdout]  99 |     AfterPageRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 100 |     /// 路由生成前
[INFO] [stdout] 101 |     BeforeRouteGenerate,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 102 |     /// 路由生成后
[INFO] [stdout] 103 |     AfterRouteGenerate,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 104 |     /// 资源处理前
[INFO] [stdout] 105 |     BeforeAssetProcess,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 106 |     /// 资源处理后
[INFO] [stdout] 107 |     AfterAssetProcess,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 108 |     /// 服务器启动前
[INFO] [stdout] 109 |     BeforeServerStart,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 110 |     /// 服务器启动后
[INFO] [stdout] 111 |     AfterServerStart,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 112 |     /// 模板加载前
[INFO] [stdout] 113 |     BeforeTemplateLoad,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 114 |     /// 模板加载后
[INFO] [stdout] 115 |     AfterTemplateLoad,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `PluginHook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `register_extensions` is never used
[INFO] [stdout]  --> src/extensions/mod.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn register_extensions() {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `slugify` is never used
[INFO] [stdout]  --> src/utils/mod.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn slugify(text: &str) -> String {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_permalink` is never used
[INFO] [stdout]   --> src/utils/mod.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn create_permalink(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_markdown_file` is never used
[INFO] [stdout]   --> src/utils/mod.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub fn is_markdown_file<P: AsRef<Path>>(path: P) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ensure_trailing_slash` is never used
[INFO] [stdout]   --> src/utils/mod.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn ensure_trailing_slash(path: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ensure_leading_slash` is never used
[INFO] [stdout]   --> src/utils/mod.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub fn ensure_leading_slash(path: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relative_time_from_now` is never used
[INFO] [stdout]   --> src/utils/mod.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub fn relative_time_from_now(date: &DateTime<Utc>) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `scaffold_dir` and `theme_config` are never read
[INFO] [stdout]   --> src/core/engine.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct Engine {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub scaffold_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub theme_config: HashMap<String, Value>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Engine` has a derived impl for the trait `Clone`, 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: multiple associated items are never used
[INFO] [stdout]    --> src/core/engine.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl Engine {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn load_theme_config(theme_dir: &Path, site_config: &Config) -> Result<HashMap<String, Value>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 235 |     pub fn load_config(&mut self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub async fn run(&mut self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 547 |     fn create_site_config(&self) -> Result<SiteConfig> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 634 |     fn copy_static_files(&self) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 662 |     fn copy_theme_assets(&self) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 698 |     pub fn cleanup(&mut self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `cleanup` are never used
[INFO] [stdout]    --> src/core/generator.rs:45:12
[INFO] [stdout]     |
[INFO] [stdout]  43 | impl HtmlGenerator {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout]  44 |     /// 创建新的 HTML 生成器
[INFO] [stdout]  45 |     pub fn new(output_dir: PathBuf, config: Config, base_dir: PathBuf) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub fn cleanup(&self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_words` is never used
[INFO] [stdout]     --> src/core/generator.rs:1164:4
[INFO] [stdout]      |
[INFO] [stdout] 1164 | fn count_words(content: &str) -> usize {
[INFO] [stdout]      |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `tx` is never read
[INFO] [stdout]   --> src/core/server.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Server {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     tx: broadcast::Sender<()>,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_sender` is never used
[INFO] [stdout]   --> src/core/server.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Server {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn get_sender(&self) -> broadcast::Sender<()> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `save_to_file` and `save` are never used
[INFO] [stdout]    --> src/models/config.rs:168:12
[INFO] [stdout]     |
[INFO] [stdout] 154 | impl Config {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 168 |     pub fn save_to_file(&self, path: &Path) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 175 |     pub fn save(&self, path: &Path) -> Result<()> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SiteConfig` is never constructed
[INFO] [stdout]   --> src/models/types.rs:98:12
[INFO] [stdout]    |
[INFO] [stdout] 98 | pub struct SiteConfig {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CommentsConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 134 | pub struct CommentsConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GiscusConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:147:12
[INFO] [stdout]     |
[INFO] [stdout] 147 | pub struct GiscusConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DisqusConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:162:12
[INFO] [stdout]     |
[INFO] [stdout] 162 | pub struct DisqusConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SearchConfig` is never constructed
[INFO] [stdout]    --> src/models/types.rs:168:12
[INFO] [stdout]     |
[INFO] [stdout] 168 | pub struct SearchConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Locals` is never constructed
[INFO] [stdout]    --> src/models/types.rs:199:12
[INFO] [stdout]     |
[INFO] [stdout] 199 | pub struct Locals {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SiteLocals` is never constructed
[INFO] [stdout]    --> src/models/types.rs:218:12
[INFO] [stdout]     |
[INFO] [stdout] 218 | pub struct SiteLocals {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RenderData` is never constructed
[INFO] [stdout]    --> src/models/types.rs:231:12
[INFO] [stdout]     |
[INFO] [stdout] 231 | pub struct RenderData {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GeneratorResult` is never constructed
[INFO] [stdout]    --> src/models/types.rs:244:12
[INFO] [stdout]     |
[INFO] [stdout] 244 | pub struct GeneratorResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `theme_dir`, `tera`, `config`, and `plugin_manager` are never read
[INFO] [stdout]   --> src/theme/renderer.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct ThemeRenderer {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 13 |     /// 主题目录
[INFO] [stdout] 14 |     pub theme_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 15 |     /// 模板引擎
[INFO] [stdout] 16 |     pub tera: Tera,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 17 |     /// 主题配置
[INFO] [stdout] 18 |     pub config: Config,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 19 |     /// 插件管理器
[INFO] [stdout] 20 |     pub plugin_manager: Option<PluginManager>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ThemeRenderer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/theme/renderer.rs:48:12
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl ThemeRenderer {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  48 |     pub fn set_plugin_manager(&mut self, plugin_manager: PluginManager) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  76 |     pub fn render(&self, template: &str, context: &HashMap<String, serde_yaml::Value>) -> Result<String> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 |     pub fn available_layouts(&self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 154 |     pub fn has_layout(&self, layout: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub fn source_dir(&self) -> PathBuf {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn reload_templates(&mut self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 |     pub fn render_template(&self, template_name: &str, context: &tera::Context) -> Result<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |     fn word_count_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 245 |     fn reading_time_function(args: &HashMap<String, tera::Value>) -> tera::Result<tera::Value> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `tera_yaml_to_value` is never used
[INFO] [stdout]    --> src/theme/renderer.rs:280:4
[INFO] [stdout]     |
[INFO] [stdout] 280 | fn tera_yaml_to_value(yaml: &serde_yaml::Value) -> Result<tera::Value> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `JSON`, `YAML`, `CSS`, `JavaScript`, and `Plain` are never constructed
[INFO] [stdout]   --> src/plugins/mod.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub enum ContentType {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 21 |     JSON,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 22 |     YAML,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 23 |     CSS,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 24 |     JavaScript,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 25 |     Plain,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ContentType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResourceLocation` is never used
[INFO] [stdout]   --> src/plugins/mod.rs:33:10
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub enum ResourceLocation {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/plugins/mod.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct PluginContext {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 41 |     /// 基础目录
[INFO] [stdout] 42 |     pub base_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 43 |     /// 插件目录
[INFO] [stdout] 44 |     pub plugins_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 45 |     /// 主题目录
[INFO] [stdout] 46 |     pub theme_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 47 |     /// 基础URL
[INFO] [stdout] 48 |     pub base_url: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 49 |     /// 输出目录
[INFO] [stdout] 50 |     pub output_dir: PathBuf,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 51 |     /// 站点配置
[INFO] [stdout] 52 |     pub config: crate::models::config::Config,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 53 |     /// 所有文章
[INFO] [stdout] 54 |     pub posts: Vec<crate::models::Post>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 55 |     /// 所有页面
[INFO] [stdout] 56 |     pub pages: Vec<crate::models::Page>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 57 |     /// 所有分类
[INFO] [stdout] 58 |     pub categories: Vec<crate::models::Category>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 59 |     /// 所有标签
[INFO] [stdout] 60 |     pub tags: Vec<crate::models::Tag>,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 61 |     /// 当前处理的文章
[INFO] [stdout] 62 |     pub current_post: Option<crate::models::Post>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 63 |     /// 当前处理的页面
[INFO] [stdout] 64 |     pub current_page: Option<crate::models::Page>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PluginContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_resources` and `cleanup` are never used
[INFO] [stdout]    --> src/plugins/mod.rs:107:8
[INFO] [stdout]     |
[INFO] [stdout]  87 | pub trait Plugin: Send + Sync {
[INFO] [stdout]     |           ------ methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 107 |     fn get_resources(&self) -> Vec<(String, ResourceLocation)> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 117 |     fn cleanup(&self) -> Result<()>;
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `watcher` is never read
[INFO] [stdout]    --> src/plugins/mod.rs:133:9
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub struct PluginManager {
[INFO] [stdout]     |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 133 |     pub watcher: Option<Box<dyn std::any::Any + Send>>,
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cleanup` is never used
[INFO] [stdout]    --> src/plugins/mod.rs:503:12
[INFO] [stdout]     |
[INFO] [stdout] 155 | impl PluginManager {
[INFO] [stdout]     | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 503 |     pub fn cleanup(&self) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/plugins/error.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub enum PluginError {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout]  8 |     #[error("版本错误: {message}")]
[INFO] [stdout]  9 |     VersionError {
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     CleanupError {
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     DependencyError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     ConfigError {
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     FunctionRegistrationError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     FilterRegistrationError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     ResourceError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     ContentProcessingError {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 68 |     Other(String),
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PluginError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]    --> src/plugins/error.rs:75:5
[INFO] [stdout]     |
[INFO] [stdout]  73 | pub enum PluginHook {
[INFO] [stdout]     |          ---------- variants in this enum
[INFO] [stdout]  74 |     /// 初始化
[INFO] [stdout]  75 |     Init,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  81 |     BeforeDeploy,
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout]  82 |     /// 部署后
[INFO] [stdout]  83 |     AfterDeploy,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout]  84 |     /// 新建文章
[INFO] [stdout]  85 |     NewPost,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]  86 |     /// 新建页面
[INFO] [stdout]  87 |     NewPage,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]  88 |     /// 清理
[INFO] [stdout]  89 |     Clean,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout]  90 |     /// 配置变更
[INFO] [stdout]  91 |     ConfigChanged,
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout]  92 |     /// 文章渲染前
[INFO] [stdout]  93 |     BeforePostRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]  94 |     /// 文章渲染后
[INFO] [stdout]  95 |     AfterPostRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^
[INFO] [stdout]  96 |     /// 页面渲染前
[INFO] [stdout]  97 |     BeforePageRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]  98 |     /// 页面渲染后
[INFO] [stdout]  99 |     AfterPageRender,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 100 |     /// 路由生成前
[INFO] [stdout] 101 |     BeforeRouteGenerate,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 102 |     /// 路由生成后
[INFO] [stdout] 103 |     AfterRouteGenerate,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 104 |     /// 资源处理前
[INFO] [stdout] 105 |     BeforeAssetProcess,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 106 |     /// 资源处理后
[INFO] [stdout] 107 |     AfterAssetProcess,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 108 |     /// 服务器启动前
[INFO] [stdout] 109 |     BeforeServerStart,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 110 |     /// 服务器启动后
[INFO] [stdout] 111 |     AfterServerStart,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 112 |     /// 模板加载前
[INFO] [stdout] 113 |     BeforeTemplateLoad,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 114 |     /// 模板加载后
[INFO] [stdout] 115 |     AfterTemplateLoad,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `PluginHook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `register_extensions` is never used
[INFO] [stdout]  --> src/extensions/mod.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn register_extensions() {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `slugify` is never used
[INFO] [stdout]  --> src/utils/mod.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn slugify(text: &str) -> String {
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_permalink` is never used
[INFO] [stdout]   --> src/utils/mod.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn create_permalink(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_markdown_file` is never used
[INFO] [stdout]   --> src/utils/mod.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub fn is_markdown_file<P: AsRef<Path>>(path: P) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ensure_trailing_slash` is never used
[INFO] [stdout]   --> src/utils/mod.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn ensure_trailing_slash(path: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ensure_leading_slash` is never used
[INFO] [stdout]   --> src/utils/mod.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub fn ensure_leading_slash(path: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relative_time_from_now` is never used
[INFO] [stdout]   --> src/utils/mod.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub fn relative_time_from_now(date: &DateTime<Utc>) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.93s
[INFO] running `Command { std: "docker" "inspect" "7bca25d47c780c89d1a843e3a3087f55512abe8671fcbfc5f5830410ea6dd47a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7bca25d47c780c89d1a843e3a3087f55512abe8671fcbfc5f5830410ea6dd47a", kill_on_drop: false }`
[INFO] [stdout] 7bca25d47c780c89d1a843e3a3087f55512abe8671fcbfc5f5830410ea6dd47a
