[INFO] cloning repository https://github.com/dzodkin33/rust-md [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dzodkin33/rust-md" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdzodkin33%2Frust-md", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdzodkin33%2Frust-md'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa3baaf1cf4eb84c3570a44b47c35f3c2f615170 [INFO] checking dzodkin33/rust-md against master#ba7e63b63871a429533c189adbfb1d9a6337e000 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdzodkin33%2Frust-md" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dzodkin33/rust-md [INFO] finished tweaking git repo https://github.com/dzodkin33/rust-md [INFO] tweaked toml for git repo https://github.com/dzodkin33/rust-md written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dzodkin33/rust-md on toolchain ba7e63b63871a429533c189adbfb1d9a6337e000 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dzodkin33/rust-md 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" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sana_derive v0.1.1 [INFO] [stderr] Downloaded sana_core v0.1.1 [INFO] [stderr] Downloaded sana v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fa016e3eb33e94b98b4d2bd4ed94aca43c122fb6ac8f4083cc9b58479d99d71 [INFO] running `Command { std: "docker" "start" "-a" "9fa016e3eb33e94b98b4d2bd4ed94aca43c122fb6ac8f4083cc9b58479d99d71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fa016e3eb33e94b98b4d2bd4ed94aca43c122fb6ac8f4083cc9b58479d99d71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fa016e3eb33e94b98b4d2bd4ed94aca43c122fb6ac8f4083cc9b58479d99d71", kill_on_drop: false }` [INFO] [stdout] 9fa016e3eb33e94b98b4d2bd4ed94aca43c122fb6ac8f4083cc9b58479d99d71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 449297e9e8aed28c1242499857d1fe86584624b29e05a2b25293f74c5241b64b [INFO] running `Command { std: "docker" "start" "-a" "449297e9e8aed28c1242499857d1fe86584624b29e05a2b25293f74c5241b64b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking sana_core v0.1.1 [INFO] [stderr] Compiling sana_derive v0.1.1 [INFO] [stderr] Checking sana v0.1.1 [INFO] [stderr] Checking rust-md v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `parser` should have an upper camel case name [INFO] [stdout] --> src/parser.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct parser { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::row::Row` [INFO] [stdout] --> src/parser_legacy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::row::Row; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/parser_legacy.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/parser_legacy.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/parser_legacy.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Write` [INFO] [stdout] --> src/document.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, Write}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/row.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `parser` should have an upper camel case name [INFO] [stdout] --> src/parser.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct parser { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::row::Row` [INFO] [stdout] --> src/parser_legacy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::row::Row; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/parser_legacy.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/parser_legacy.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/parser_legacy.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Write` [INFO] [stdout] --> src/document.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, Write}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/row.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `oldWord` [INFO] [stdout] --> src/parser_legacy.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let oldWord = word; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_oldWord` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `oldWord` [INFO] [stdout] --> src/parser_legacy.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let oldWord = word; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_oldWord` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `parser` is never constructed [INFO] [stdout] --> src/parser.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser_legacy.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser_legacy.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 22 | [INFO] [stdout] 23 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn parse_row(&self ,index: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn parse_header(&self, row: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn parse_horizontal_rules(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn contains_only(&self, row: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn is_horizontal_rules(&self, row: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn remove_whiespace(&self, row: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn prase_emphasis(&self, word: &String) -> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn is_bold(&self, word: &String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | fn is_italic(&self, word: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn is_italic_bold(&self, word: & String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | fn is_triple_wrapped(&self, word: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn is_double_wrapped(&self, word: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | fn is_wrapped(&self, word: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn add_html_wrapper(&self, row: &String, tag: &str, tag_start: usize, tag_end: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render` is never used [INFO] [stdout] --> src/renderer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn render(token: Token) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/token.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_html_tag` and `get_content` are never used [INFO] [stdout] --> src/token.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 14 | pub fn get_html_tag(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get_content(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Document` is never constructed [INFO] [stdout] --> src/document.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Document { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read_file` and `get_row` are never used [INFO] [stdout] --> src/document.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Document { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 14 | pub fn read_file(filename:&str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_row(&self, index: usize) -> Option<&Row> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Row` is never constructed [INFO] [stdout] --> src/row.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Row { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `parser` is never constructed [INFO] [stdout] --> src/parser.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_string`, `len`, and `is_empty` are never used [INFO] [stdout] --> src/row.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Row { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 22 | pub fn get_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser_legacy.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oldWord` should have a snake case name [INFO] [stdout] --> src/parser_legacy.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let oldWord = word; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `old_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newWord` should have a snake case name [INFO] [stdout] --> src/parser_legacy.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let newWord = self.prase_emphasis(&word.to_string()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser_legacy.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 22 | [INFO] [stdout] 23 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn parse_row(&self ,index: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn parse_header(&self, row: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn parse_horizontal_rules(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn contains_only(&self, row: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn is_horizontal_rules(&self, row: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn remove_whiespace(&self, row: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn prase_emphasis(&self, word: &String) -> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn is_bold(&self, word: &String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | fn is_italic(&self, word: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn is_italic_bold(&self, word: & String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | fn is_triple_wrapped(&self, word: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn is_double_wrapped(&self, word: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | fn is_wrapped(&self, word: &String, symbol: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn add_html_wrapper(&self, row: &String, tag: &str, tag_start: usize, tag_end: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render` is never used [INFO] [stdout] --> src/renderer.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn render(token: Token) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/token.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_html_tag` and `get_content` are never used [INFO] [stdout] --> src/token.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 14 | pub fn get_html_tag(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get_content(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Document` is never constructed [INFO] [stdout] --> src/document.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Document { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read_file` and `get_row` are never used [INFO] [stdout] --> src/document.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Document { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 14 | pub fn read_file(filename:&str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_row(&self, index: usize) -> Option<&Row> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Row` is never constructed [INFO] [stdout] --> src/row.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Row { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_string`, `len`, and `is_empty` are never used [INFO] [stdout] --> src/row.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Row { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 22 | pub fn get_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oldWord` should have a snake case name [INFO] [stdout] --> src/parser_legacy.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let oldWord = word; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `old_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newWord` should have a snake case name [INFO] [stdout] --> src/parser_legacy.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let newWord = self.prase_emphasis(&word.to_string()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `str::::replace` that must be used [INFO] [stdout] --> src/parser_legacy.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | row.replace(word, &newWord); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the replaced string as a new allocation, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 73 | let _ = row.replace(word, &newWord); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `str::::replace` that must be used [INFO] [stdout] --> src/parser_legacy.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | row.replace(word, &newWord); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the replaced string as a new allocation, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 73 | let _ = row.replace(word, &newWord); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.98s [INFO] running `Command { std: "docker" "inspect" "449297e9e8aed28c1242499857d1fe86584624b29e05a2b25293f74c5241b64b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "449297e9e8aed28c1242499857d1fe86584624b29e05a2b25293f74c5241b64b", kill_on_drop: false }` [INFO] [stdout] 449297e9e8aed28c1242499857d1fe86584624b29e05a2b25293f74c5241b64b