[INFO] fetching crate prema 0.2.26... [INFO] checking prema-0.2.26 against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577 [INFO] extracting crate prema 0.2.26 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate prema 0.2.26 [INFO] finished tweaking crates.io crate prema 0.2.26 [INFO] tweaked toml for crates.io crate prema 0.2.26 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate prema 0.2.26 on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate prema 0.2.26 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" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded chunked_transfer v1.5.0 [INFO] [stderr] Downloaded tiny_http v0.12.0 [INFO] [stderr] Downloaded dateparser v0.2.1 [INFO] [stderr] Downloaded unicode-id v0.3.4 [INFO] [stderr] Downloaded markdown v1.0.0-alpha.23 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00f6e9606b27793f8f1fb214f0eb78c5f80e63432d4295e7c1bf7cf207ae4f57 [INFO] running `Command { std: "docker" "start" "-a" "00f6e9606b27793f8f1fb214f0eb78c5f80e63432d4295e7c1bf7cf207ae4f57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00f6e9606b27793f8f1fb214f0eb78c5f80e63432d4295e7c1bf7cf207ae4f57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00f6e9606b27793f8f1fb214f0eb78c5f80e63432d4295e7c1bf7cf207ae4f57", kill_on_drop: false }` [INFO] [stdout] 00f6e9606b27793f8f1fb214f0eb78c5f80e63432d4295e7c1bf7cf207ae4f57 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a6529ca80a35bb59971b6ab6f84541403e558f73a4b5ae3188b87b870a9ec16 [INFO] running `Command { std: "docker" "start" "-a" "2a6529ca80a35bb59971b6ab6f84541403e558f73a4b5ae3188b87b870a9ec16", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking indexmap v2.8.0 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking ascii v1.1.0 [INFO] [stderr] Checking unicode-id v0.3.4 [INFO] [stderr] Checking chunked_transfer v1.5.0 [INFO] [stderr] Checking winnow v0.7.4 [INFO] [stderr] Checking markdown v1.0.0-alpha.23 [INFO] [stderr] Checking tiny_http v0.12.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking dateparser v0.2.1 [INFO] [stderr] Checking toml_edit v0.22.24 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking prema v0.2.26 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::file` [INFO] [stdout] --> src/cli.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::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: `crate::server::run_server` [INFO] [stdout] --> src/cli.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::server::run_server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `type_name` [INFO] [stdout] --> src/cli.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::any::{type_name, Any}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/cli.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `stdin` [INFO] [stdout] --> src/cli.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{stdin, Read, Write}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `PathBuf` [INFO] [stdout] --> src/cli.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::{Display, Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, and `self` [INFO] [stdout] --> src/page.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, BufRead, BufReader}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `has_stem_dir` [INFO] [stdout] --> src/page.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::file::{self, has_stem_dir}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::html::HTMLView` [INFO] [stdout] --> src/page.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::html::HTMLView; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/page.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::layout::{self, layouts_from_toml, toml_to_html}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/page.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/page.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `type_name` [INFO] [stdout] --> src/server.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{type_name, Any}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `stdin` [INFO] [stdout] --> src/server.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{stdin, Read, Write}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `PathBuf` [INFO] [stdout] --> src/server.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Display, Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `structopt::StructOpt` [INFO] [stdout] --> src/server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Local` [INFO] [stdout] --> src/server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::Local; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::option::load_option` [INFO] [stdout] --> src/file.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::option::load_option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::Page` [INFO] [stdout] --> src/file.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::page::Page; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/html.rs:200:131 [INFO] [stdout] | [INFO] [stdout] 200 | ...ajax/libs/highlight.js/11.9.0/styles/atom-one-{}.min.css", if (is_dark) { "dark" } else { "light" }), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 200 - "href".to_string() => format!("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-{}.min.css", if (is_dark) { "dark" } else { "light" }), [INFO] [stdout] 200 + "href".to_string() => format!("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-{}.min.css", if is_dark { "dark" } else { "light" }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `table_to_tomlview` [INFO] [stdout] --> src/layout/mod.rs:2:66 [INFO] [stdout] | [INFO] [stdout] 2 | use common::{get_layout_tables_except_key, get_tomlview_for_key, table_to_tomlview}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/layout/mod.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use toml_edit::{value, Table}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `filter_attrs` [INFO] [stdout] --> src/layout/view.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::html::{filter_attrs, HTMLView}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::Page` [INFO] [stdout] --> src/layout/view.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::page::Page; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DocumentMut` and `value` [INFO] [stdout] --> src/layout/view.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use toml_edit::{value, DocumentMut, Item, Table, Value}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::padding::PaddingType` [INFO] [stdout] --> src/layout/view.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use super::padding::PaddingType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `PathBuf` [INFO] [stdout] --> src/layout/common.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, fs::File, io::Read, path::{Path, PathBuf} [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> src/layout/common.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{Array, DocumentMut, InlineTable, Item, Table, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `html::HTMLView` [INFO] [stdout] --> src/layout/common.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{html::HTMLView, layout::view::{EmbedView, GridView, ImageView, ListColumnView, ListRowView, MarkdownListColumnView, MarkdownL... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `env`, and `io::Write` [INFO] [stdout] --> src/markdown/mod.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, env, fs::{self, File}, io::Write, path::{Path, PathBuf}}; [INFO] [stdout] | ^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/markdown/mod.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{InlineTable, Table, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `layout_to_tomlview` and `toml_to_html` [INFO] [stdout] --> src/markdown/mod.rs:7:69 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{html::HTMLView, layout::{common::{get_tomlview_for_key, layout_to_tomlview}, toml_to_html}, yaml::yaml_hashmap_to_inline_table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HTMLNode` and `HTMLTag` [INFO] [stdout] --> src/markdown/parser.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::html::{HTMLNode, HTMLTag}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `markdown::message::Message` [INFO] [stdout] --> src/markdown/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use markdown::message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/markdown/parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::option::ThemeValue` [INFO] [stdout] --> src/markdown/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::option::ThemeValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::option::MDOption` [INFO] [stdout] --> src/markdown/parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::option::MDOption; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::Page` [INFO] [stdout] --> src/option.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::page::Page; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/option.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | use toml_edit::{DocumentMut, value, Value, Item, Table}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/yaml.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use toml_edit::{value, InlineTable, Value as TomlEditValue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `io::Read`, `path::Path`, and `self` [INFO] [stdout] --> src/test/markdown.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 3 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | path::Path, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `maplit::hashmap` [INFO] [stdout] --> src/test/markdown.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use maplit::hashmap; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_yaml::Value` [INFO] [stdout] --> src/test/markdown.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_yaml::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `common::get_tomlview_for_key`, `layouts_from_toml`, `markdown_wrap_to_html`, `markdown_wrap_to_htmlview`, `metas_table_from_markdown`, and `page::make_md_files_to_folder_except_index` [INFO] [stdout] --> src/test/markdown.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | ...::{common::get_tomlview_for_key, layouts_from_toml}, markdown::{markdown_wrap_to_html, markdown_wrap_to_htmlview, metas_table_from_markdown}, page::make_md_files_to_folder_except_index}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `path::Path` [INFO] [stdout] --> src/test/page.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::*` [INFO] [stdout] --> src/test/page.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::page::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::file` [INFO] [stdout] --> src/cli.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::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: `crate::server::run_server` [INFO] [stdout] --> src/cli.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::server::run_server; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `type_name` [INFO] [stdout] --> src/cli.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::any::{type_name, Any}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/cli.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `stdin` [INFO] [stdout] --> src/cli.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::{stdin, Read, Write}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `PathBuf` [INFO] [stdout] --> src/cli.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::{Display, Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, and `self` [INFO] [stdout] --> src/page.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, BufRead, BufReader}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `has_stem_dir` [INFO] [stdout] --> src/page.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::file::{self, has_stem_dir}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::html::HTMLView` [INFO] [stdout] --> src/page.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::html::HTMLView; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/page.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::layout::{self, layouts_from_toml, toml_to_html}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/page.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/page.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `type_name` [INFO] [stdout] --> src/server.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{type_name, Any}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `stdin` [INFO] [stdout] --> src/server.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{stdin, Read, Write}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `PathBuf` [INFO] [stdout] --> src/server.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Display, Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `structopt::StructOpt` [INFO] [stdout] --> src/server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Local` [INFO] [stdout] --> src/server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::Local; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::option::load_option` [INFO] [stdout] --> src/file.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::option::load_option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::Page` [INFO] [stdout] --> src/file.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::page::Page; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/html.rs:200:131 [INFO] [stdout] | [INFO] [stdout] 200 | ...ajax/libs/highlight.js/11.9.0/styles/atom-one-{}.min.css", if (is_dark) { "dark" } else { "light" }), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 200 - "href".to_string() => format!("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-{}.min.css", if (is_dark) { "dark" } else { "light" }), [INFO] [stdout] 200 + "href".to_string() => format!("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-{}.min.css", if is_dark { "dark" } else { "light" }), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `table_to_tomlview` [INFO] [stdout] --> src/layout/mod.rs:2:66 [INFO] [stdout] | [INFO] [stdout] 2 | use common::{get_layout_tables_except_key, get_tomlview_for_key, table_to_tomlview}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/layout/mod.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use toml_edit::{value, Table}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `filter_attrs` [INFO] [stdout] --> src/layout/view.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::html::{filter_attrs, HTMLView}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::Page` [INFO] [stdout] --> src/layout/view.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::page::Page; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DocumentMut` and `value` [INFO] [stdout] --> src/layout/view.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | use toml_edit::{value, DocumentMut, Item, Table, Value}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::padding::PaddingType` [INFO] [stdout] --> src/layout/view.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use super::padding::PaddingType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet` and `PathBuf` [INFO] [stdout] --> src/layout/common.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashMap, HashSet}, fs::File, io::Read, path::{Path, PathBuf} [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Array` [INFO] [stdout] --> src/layout/common.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{Array, DocumentMut, InlineTable, Item, Table, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `html::HTMLView` [INFO] [stdout] --> src/layout/common.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{html::HTMLView, layout::view::{EmbedView, GridView, ImageView, ListColumnView, ListRowView, MarkdownListColumnView, MarkdownL... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `env`, and `io::Write` [INFO] [stdout] --> src/markdown/mod.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, env, fs::{self, File}, io::Write, path::{Path, PathBuf}}; [INFO] [stdout] | ^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/markdown/mod.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use toml_edit::{InlineTable, Table, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `layout_to_tomlview` and `toml_to_html` [INFO] [stdout] --> src/markdown/mod.rs:7:69 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{html::HTMLView, layout::{common::{get_tomlview_for_key, layout_to_tomlview}, toml_to_html}, yaml::yaml_hashmap_to_inline_table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HTMLNode` and `HTMLTag` [INFO] [stdout] --> src/markdown/parser.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::html::{HTMLNode, HTMLTag}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `markdown::message::Message` [INFO] [stdout] --> src/markdown/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use markdown::message::Message; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/markdown/parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::option::ThemeValue` [INFO] [stdout] --> src/markdown/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::option::ThemeValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::option::MDOption` [INFO] [stdout] --> src/markdown/parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::option::MDOption; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::page::Page` [INFO] [stdout] --> src/option.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::page::Page; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/option.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | use toml_edit::{DocumentMut, value, Value, Item, Table}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `value` [INFO] [stdout] --> src/yaml.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use toml_edit::{value, InlineTable, Value as TomlEditValue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `io::Read`, and `self` [INFO] [stdout] --> src/test/markdown.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 3 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_yaml::Value` [INFO] [stdout] --> src/test/markdown.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_yaml::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `markdown_wrap_to_html` and `page::make_md_files_to_folder_except_index` [INFO] [stdout] --> src/test/markdown.rs:10:83 [INFO] [stdout] | [INFO] [stdout] 10 | ...down::{markdown_wrap_to_html, markdown_wrap_to_htmlview, metas_table_from_markdown}, page::make_md_files_to_folder_except_index}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/test/page.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/page.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/page.rs:283:19 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn find_title(path: &Path) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/html.rs:335:42 [INFO] [stdout] | [INFO] [stdout] 335 | (0..depth).for_each(|x| str.push_str("\t")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/html.rs:339:38 [INFO] [stdout] | [INFO] [stdout] 339 | (0..depth).for_each(|x| str.push_str("\t")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/html.rs:423:9 [INFO] [stdout] | [INFO] [stdout] 423 | let mut head = HTMLNode::new(HTMLTag::Head, &md_option); [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: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:169:24 [INFO] [stdout] | [INFO] [stdout] 169 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:354:24 [INFO] [stdout] | [INFO] [stdout] 354 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:532:24 [INFO] [stdout] | [INFO] [stdout] 532 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:616:125 [INFO] [stdout] | [INFO] [stdout] 616 | ...ption<&dyn TOMLView>, layout_tables: HashMap) -> TextView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:697:24 [INFO] [stdout] | [INFO] [stdout] 697 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:791:125 [INFO] [stdout] | [INFO] [stdout] 791 | ...ption<&dyn TOMLView>, layout_tables: HashMap) -> ImageView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/layout/view.rs:868:13 [INFO] [stdout] | [INFO] [stdout] 868 | let mut img_style_parts = vec![ [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:867:24 [INFO] [stdout] | [INFO] [stdout] 867 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:944:125 [INFO] [stdout] | [INFO] [stdout] 944 | ...ption<&dyn TOMLView>, layout_tables: HashMap) -> NavView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1022:24 [INFO] [stdout] | [INFO] [stdout] 1022 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/page.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1179:24 [INFO] [stdout] | [INFO] [stdout] 1179 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1360:24 [INFO] [stdout] | [INFO] [stdout] 1360 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1581:24 [INFO] [stdout] | [INFO] [stdout] 1581 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1765:24 [INFO] [stdout] | [INFO] [stdout] 1765 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/page.rs:283:19 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn find_title(path: &Path) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:1852:125 [INFO] [stdout] | [INFO] [stdout] 1852 | ...ption<&dyn TOMLView>, layout_tables: HashMap, is_scroll: bool) -> MarkdownView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1932:24 [INFO] [stdout] | [INFO] [stdout] 1932 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/layout/view.rs:1991:17 [INFO] [stdout] | [INFO] [stdout] 1991 | Err(message) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:2130:24 [INFO] [stdout] | [INFO] [stdout] 2130 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/html.rs:335:42 [INFO] [stdout] | [INFO] [stdout] 335 | (0..depth).for_each(|x| str.push_str("\t")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:2304:24 [INFO] [stdout] | [INFO] [stdout] 2304 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/html.rs:339:38 [INFO] [stdout] | [INFO] [stdout] 339 | (0..depth).for_each(|x| str.push_str("\t")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/layout/common.rs:45:62 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn item_to_bool(table: &Table, key: &str, default: bool, value: Option<&InlineTable>) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/html.rs:423:9 [INFO] [stdout] | [INFO] [stdout] 423 | let mut head = HTMLNode::new(HTMLTag::Head, &md_option); [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: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:169:24 [INFO] [stdout] | [INFO] [stdout] 169 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:354:24 [INFO] [stdout] | [INFO] [stdout] 354 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/markdown/parser.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | Err(message) => Err("no file"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:532:24 [INFO] [stdout] | [INFO] [stdout] 532 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:616:125 [INFO] [stdout] | [INFO] [stdout] 616 | ...ption<&dyn TOMLView>, layout_tables: HashMap) -> TextView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/markdown/parser.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 218 | Node::ThematicBreak(node) => HTMLView { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:697:24 [INFO] [stdout] | [INFO] [stdout] 697 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:791:125 [INFO] [stdout] | [INFO] [stdout] 791 | ...ption<&dyn TOMLView>, layout_tables: HashMap) -> ImageView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/layout/view.rs:868:13 [INFO] [stdout] | [INFO] [stdout] 868 | let mut img_style_parts = vec![ [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:867:24 [INFO] [stdout] | [INFO] [stdout] 867 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:944:125 [INFO] [stdout] | [INFO] [stdout] 944 | ...ption<&dyn TOMLView>, layout_tables: HashMap) -> NavView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1022:24 [INFO] [stdout] | [INFO] [stdout] 1022 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/option.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut doc = config_str.parse::() [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1179:24 [INFO] [stdout] | [INFO] [stdout] 1179 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1360:24 [INFO] [stdout] | [INFO] [stdout] 1360 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1581:24 [INFO] [stdout] | [INFO] [stdout] 1581 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Menu` is more private than the item `MDOption::menus` [INFO] [stdout] --> src/option.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub menus: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ field `MDOption::menus` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Menu` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/option.rs:132:1 [INFO] [stdout] | [INFO] [stdout] 132 | struct Menu { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/page.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/page.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Page { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 30 | pub fn print(&self, depth: usize) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_md_files_to_folder_except_index` is never used [INFO] [stdout] --> src/page.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn make_md_files_to_folder_except_index(path: &Path) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_first_non_empty_line` is never used [INFO] [stdout] --> src/file.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn read_first_non_empty_line(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_images` is never used [INFO] [stdout] --> src/file.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn find_images(path: &Path) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_root` is never used [INFO] [stdout] --> src/file.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn change_root(root: &Path, path: &Path) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_timestamps` is never used [INFO] [stdout] --> src/file.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn get_file_timestamps(path: &Path) -> io::Result<(Option, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_stem_dir` is never used [INFO] [stdout] --> src/file.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn has_stem_dir(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wrap_div`, `insert_header_footer`, and `find_body_mut` are never used [INFO] [stdout] --> src/html.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl HTMLView { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn wrap_div(&self, attrs: HashMap) -> HTMLView { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn insert_header_footer(&mut self, header: Option, footer: Option) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn find_body_mut(&mut self) -> Option<&mut HTMLView> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HTMLTag` is never used [INFO] [stdout] --> src/html.rs:220:10 [INFO] [stdout] | [INFO] [stdout] 220 | pub enum HTMLTag { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HTMLNode` is never constructed [INFO] [stdout] --> src/html.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct HTMLNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/html.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 260 | impl HTMLNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 261 | pub fn new(tag: HTMLTag, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn from_attributes(tag: HTMLTag, attributes: HashMap<&'static str, String>, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 280 | pub fn from_value(tag: HTMLTag, value: String, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn from_children(tag: HTMLTag, children: Vec, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn from_attributes_children(tag: HTMLTag, attributes: HashMap<&'static str, String>, children: Vec, md_option: &Option<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn from_attributes_value(tag: HTMLTag, attributes: HashMap<&'static str, String>, value: String, md_option: &Option) ->... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn html(&self, depth: usize) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `class` and `tag` are never used [INFO] [stdout] --> src/html.rs:353:12 [INFO] [stdout] | [INFO] [stdout] 351 | impl HTMLTag { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 352 | [INFO] [stdout] 353 | pub fn class(&self, md_option: &Option) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub fn tag(&self) -> &'static str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `footer` is never used [INFO] [stdout] --> src/html.rs:399:8 [INFO] [stdout] | [INFO] [stdout] 399 | pub fn footer(md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_html` is never used [INFO] [stdout] --> src/html.rs:417:4 [INFO] [stdout] | [INFO] [stdout] 417 | fn write_html(html_path: &Path, md_option: &Option, html: &String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PaddingType` is never used [INFO] [stdout] --> src/layout/padding.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PaddingType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_any`, `width`, `height`, `background`, `path`, and `value` are never used [INFO] [stdout] --> src/layout/view.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub trait TOMLView: Any { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 40 | fn as_any(&self) -> &dyn Any; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn width(&self) -> String; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | fn height(&self) -> String; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | fn background(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | fn path(&self) -> String; [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | fn value(&self) -> Option; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct ColumnView { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:252:5 [INFO] [stdout] | [INFO] [stdout] 239 | pub struct RowView { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 252 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `inner_padding` and `value` are never read [INFO] [stdout] --> src/layout/view.rs:429:5 [INFO] [stdout] | [INFO] [stdout] 422 | pub struct BoxView { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 429 | inner_padding: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:610:5 [INFO] [stdout] | [INFO] [stdout] 593 | pub struct TextView { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 610 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:785:5 [INFO] [stdout] | [INFO] [stdout] 773 | pub struct ImageView { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 785 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `background`, `path`, and `value` are never read [INFO] [stdout] --> src/layout/view.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 926 | pub struct NavView { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 931 | background: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 932 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 938 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:1079:5 [INFO] [stdout] | [INFO] [stdout] 1066 | pub struct ListColumnView { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1079 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:1260:5 [INFO] [stdout] | [INFO] [stdout] 1247 | pub struct ListRowView { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1260 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:1441:5 [INFO] [stdout] | [INFO] [stdout] 1428 | pub struct MarkdownListColumnView { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1441 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:1662:5 [INFO] [stdout] | [INFO] [stdout] 1649 | pub struct MarkdownListRowView { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1662 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:1846:5 [INFO] [stdout] | [INFO] [stdout] 1833 | pub struct MarkdownView { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 1846 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:2029:5 [INFO] [stdout] | [INFO] [stdout] 2016 | pub struct GridView { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 2029 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/layout/view.rs:2209:5 [INFO] [stdout] | [INFO] [stdout] 2197 | pub struct EmbedView { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 2209 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_value_in_inlinetable` is never used [INFO] [stdout] --> src/layout/common.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_value_in_inlinetable(key: &str, table: Option) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1765:24 [INFO] [stdout] | [INFO] [stdout] 1765 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_option` is never used [INFO] [stdout] --> src/option.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load_option(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_option` is never used [INFO] [stdout] --> src/option.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn find_option(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_option_from_toml` is never used [INFO] [stdout] --> src/option.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn load_option_from_toml(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MDOption` is never constructed [INFO] [stdout] --> src/option.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct MDOption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `menus_to_html`, `footer_to_html`, `is_night`, and `tag` are never used [INFO] [stdout] --> src/option.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl MDOption { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 103 | pub fn menus_to_html(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn footer_to_html(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_night(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn tag(&self) -> &Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Menu` is never constructed [INFO] [stdout] --> src/option.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | struct Menu { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DropDown` is never constructed [INFO] [stdout] --> src/option.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct DropDown { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `menus_to_html` is never used [INFO] [stdout] --> src/option.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn menus_to_html(menus: &Vec, md_option: &Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_menus` is never used [INFO] [stdout] --> src/option.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn table_to_menus(table: &Table) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_leading_slash` is never used [INFO] [stdout] --> src/option.rs:234:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn ensure_leading_slash(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_dropdowns` is never used [INFO] [stdout] --> src/option.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn table_to_dropdowns(table: &Table) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Basic` is never constructed [INFO] [stdout] --> src/option.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 263 | pub struct Basic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Footer` is never constructed [INFO] [stdout] --> src/option.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 270 | pub struct Footer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FooterSNS` is never constructed [INFO] [stdout] --> src/option.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct FooterSNS { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `svg_html` is never used [INFO] [stdout] --> src/option.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 281 | impl FooterSNS { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 282 | fn svg_html(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `footer_to_html` is never used [INFO] [stdout] --> src/option.rs:315:4 [INFO] [stdout] | [INFO] [stdout] 315 | fn footer_to_html(footer: &Footer, md_option: &Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_footer` is never used [INFO] [stdout] --> src/option.rs:339:4 [INFO] [stdout] | [INFO] [stdout] 339 | fn table_to_footer(table: &Table) -> Footer { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_snss` is never used [INFO] [stdout] --> src/option.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn table_to_snss(table: &Table) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ThemeValue` is never used [INFO] [stdout] --> src/option.rs:379:10 [INFO] [stdout] | [INFO] [stdout] 379 | pub enum ThemeValue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_themes` is never used [INFO] [stdout] --> src/option.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 385 | fn table_to_themes(table: &Table) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_basic` is never used [INFO] [stdout] --> src/option.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn table_to_basic(table: &Table) -> Basic { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout_tables` [INFO] [stdout] --> src/layout/view.rs:1852:125 [INFO] [stdout] | [INFO] [stdout] 1852 | ...ption<&dyn TOMLView>, layout_tables: HashMap, is_scroll: bool) -> MarkdownView { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:1932:24 [INFO] [stdout] | [INFO] [stdout] 1932 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/layout/view.rs:1991:17 [INFO] [stdout] | [INFO] [stdout] 1991 | Err(message) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:2130:24 [INFO] [stdout] | [INFO] [stdout] 2130 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_view` [INFO] [stdout] --> src/layout/view.rs:2304:24 [INFO] [stdout] | [INFO] [stdout] 2304 | fn htmlview(&self, super_view: Option<&dyn TOMLView>) -> HTMLView { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/layout/common.rs:45:62 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn item_to_bool(table: &Table, key: &str, default: bool, value: Option<&InlineTable>) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/markdown/parser.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | Err(message) => Err("no file"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/markdown/parser.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 218 | Node::ThematicBreak(node) => HTMLView { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/option.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut doc = config_str.parse::() [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_folder` [INFO] [stdout] --> src/test/markdown.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let index_folder = index_path.parent().ok_or("failed to get index_folder")?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_folder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/test/page.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Menu` is more private than the item `MDOption::menus` [INFO] [stdout] --> src/option.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub menus: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ field `MDOption::menus` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Menu` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/option.rs:132:1 [INFO] [stdout] | [INFO] [stdout] 132 | struct Menu { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/page.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | title: String, [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 `make_md_files_to_folder_except_index` is never used [INFO] [stdout] --> src/page.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn make_md_files_to_folder_except_index(path: &Path) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_first_non_empty_line` is never used [INFO] [stdout] --> src/file.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn read_first_non_empty_line(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_images` is never used [INFO] [stdout] --> src/file.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn find_images(path: &Path) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_root` is never used [INFO] [stdout] --> src/file.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn change_root(root: &Path, path: &Path) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_timestamps` is never used [INFO] [stdout] --> src/file.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn get_file_timestamps(path: &Path) -> io::Result<(Option, Option)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_stem_dir` is never used [INFO] [stdout] --> src/file.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn has_stem_dir(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wrap_div`, `insert_header_footer`, and `find_body_mut` are never used [INFO] [stdout] --> src/html.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl HTMLView { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn wrap_div(&self, attrs: HashMap) -> HTMLView { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn insert_header_footer(&mut self, header: Option, footer: Option) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn find_body_mut(&mut self) -> Option<&mut HTMLView> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HTMLTag` is never used [INFO] [stdout] --> src/html.rs:220:10 [INFO] [stdout] | [INFO] [stdout] 220 | pub enum HTMLTag { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HTMLNode` is never constructed [INFO] [stdout] --> src/html.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct HTMLNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/html.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 260 | impl HTMLNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 261 | pub fn new(tag: HTMLTag, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn from_attributes(tag: HTMLTag, attributes: HashMap<&'static str, String>, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 280 | pub fn from_value(tag: HTMLTag, value: String, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn from_children(tag: HTMLTag, children: Vec, md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 296 | pub fn from_attributes_children(tag: HTMLTag, attributes: HashMap<&'static str, String>, children: Vec, md_option: &Option<... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn from_attributes_value(tag: HTMLTag, attributes: HashMap<&'static str, String>, value: String, md_option: &Option) ->... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn html(&self, depth: usize) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `class` and `tag` are never used [INFO] [stdout] --> src/html.rs:353:12 [INFO] [stdout] | [INFO] [stdout] 351 | impl HTMLTag { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 352 | [INFO] [stdout] 353 | pub fn class(&self, md_option: &Option) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub fn tag(&self) -> &'static str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `footer` is never used [INFO] [stdout] --> src/html.rs:399:8 [INFO] [stdout] | [INFO] [stdout] 399 | pub fn footer(md_option: &Option) -> HTMLNode { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_html` is never used [INFO] [stdout] --> src/html.rs:417:4 [INFO] [stdout] | [INFO] [stdout] 417 | fn write_html(html_path: &Path, md_option: &Option, html: &String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PaddingType` is never used [INFO] [stdout] --> src/layout/padding.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PaddingType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_any`, `width`, `height`, `background`, and `path` are never used [INFO] [stdout] --> src/layout/view.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub trait TOMLView: Any { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 40 | fn as_any(&self) -> &dyn Any; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn width(&self) -> String; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | fn height(&self) -> String; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | fn background(&self) -> String; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | fn path(&self) -> String; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inner_padding` is never read [INFO] [stdout] --> src/layout/view.rs:429:5 [INFO] [stdout] | [INFO] [stdout] 422 | pub struct BoxView { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 429 | inner_padding: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `background` and `path` are never read [INFO] [stdout] --> src/layout/view.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 926 | pub struct NavView { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 931 | background: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 932 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_value_in_inlinetable` is never used [INFO] [stdout] --> src/layout/common.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_value_in_inlinetable(key: &str, table: Option) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_option` is never used [INFO] [stdout] --> src/option.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load_option(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_option` is never used [INFO] [stdout] --> src/option.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn find_option(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_option_from_toml` is never used [INFO] [stdout] --> src/option.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn load_option_from_toml(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MDOption` is never constructed [INFO] [stdout] --> src/option.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct MDOption { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `menus_to_html`, `footer_to_html`, `is_night`, and `tag` are never used [INFO] [stdout] --> src/option.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl MDOption { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 103 | pub fn menus_to_html(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn footer_to_html(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_night(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn tag(&self) -> &Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Menu` is never constructed [INFO] [stdout] --> src/option.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | struct Menu { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DropDown` is never constructed [INFO] [stdout] --> src/option.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | struct DropDown { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `menus_to_html` is never used [INFO] [stdout] --> src/option.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn menus_to_html(menus: &Vec, md_option: &Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_menus` is never used [INFO] [stdout] --> src/option.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn table_to_menus(table: &Table) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_leading_slash` is never used [INFO] [stdout] --> src/option.rs:234:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn ensure_leading_slash(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_dropdowns` is never used [INFO] [stdout] --> src/option.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn table_to_dropdowns(table: &Table) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Basic` is never constructed [INFO] [stdout] --> src/option.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 263 | pub struct Basic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Footer` is never constructed [INFO] [stdout] --> src/option.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 270 | pub struct Footer { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FooterSNS` is never constructed [INFO] [stdout] --> src/option.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct FooterSNS { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `svg_html` is never used [INFO] [stdout] --> src/option.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 281 | impl FooterSNS { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 282 | fn svg_html(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `footer_to_html` is never used [INFO] [stdout] --> src/option.rs:315:4 [INFO] [stdout] | [INFO] [stdout] 315 | fn footer_to_html(footer: &Footer, md_option: &Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_footer` is never used [INFO] [stdout] --> src/option.rs:339:4 [INFO] [stdout] | [INFO] [stdout] 339 | fn table_to_footer(table: &Table) -> Footer { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_snss` is never used [INFO] [stdout] --> src/option.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn table_to_snss(table: &Table) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ThemeValue` is never used [INFO] [stdout] --> src/option.rs:379:10 [INFO] [stdout] | [INFO] [stdout] 379 | pub enum ThemeValue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_themes` is never used [INFO] [stdout] --> src/option.rs:385:4 [INFO] [stdout] | [INFO] [stdout] 385 | fn table_to_themes(table: &Table) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `table_to_basic` is never used [INFO] [stdout] --> src/option.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn table_to_basic(table: &Table) -> Basic { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.50s [INFO] running `Command { std: "docker" "inspect" "2a6529ca80a35bb59971b6ab6f84541403e558f73a4b5ae3188b87b870a9ec16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a6529ca80a35bb59971b6ab6f84541403e558f73a4b5ae3188b87b870a9ec16", kill_on_drop: false }` [INFO] [stdout] 2a6529ca80a35bb59971b6ab6f84541403e558f73a4b5ae3188b87b870a9ec16