[INFO] cloning repository https://github.com/YuseiIto/cosy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YuseiIto/cosy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYuseiIto%2Fcosy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYuseiIto%2Fcosy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] daa0a42cc69b1df50f542158fc4d2fc8eb316619 [INFO] linting YuseiIto/cosy against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYuseiIto%2Fcosy" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/YuseiIto/cosy [INFO] finished tweaking git repo https://github.com/YuseiIto/cosy [INFO] tweaked toml for git repo https://github.com/YuseiIto/cosy written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/YuseiIto/cosy on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/YuseiIto/cosy 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aws-lc-sys v0.37.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7dd7df7341abf92b5e2b1506076de9a44a640ab48c234cdec863e99031ca7411 [INFO] running `Command { std: "docker" "start" "-a" "7dd7df7341abf92b5e2b1506076de9a44a640ab48c234cdec863e99031ca7411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7dd7df7341abf92b5e2b1506076de9a44a640ab48c234cdec863e99031ca7411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dd7df7341abf92b5e2b1506076de9a44a640ab48c234cdec863e99031ca7411", kill_on_drop: false }` [INFO] [stdout] 7dd7df7341abf92b5e2b1506076de9a44a640ab48c234cdec863e99031ca7411 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f488e896564142b67ec611741aee924e640d49da4893433144cb9b4cdeaf69f [INFO] running `Command { std: "docker" "start" "-a" "5f488e896564142b67ec611741aee924e640d49da4893433144cb9b4cdeaf69f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling aws-lc-sys v0.37.0 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking clap v4.5.57 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking cosy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DECO_CHARS` and `DOLLAR` [INFO] [stdout] --> src/parser/bracket.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::tokens::{DECO_CHARS, DOLLAR, ICON_SUFFIX, LBRACKET, RBRACKET}; [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::ast::Link` [INFO] [stdout] --> src/parser/bracket_extension.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::Link; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DECO_CHARS`, `DOLLAR`, and `ICON_SUFFIX` [INFO] [stdout] --> src/parser/bracket_extension.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::tokens::{DECO_CHARS, DOLLAR, ICON_SUFFIX, LBRACKET, RBRACKET}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UrlKind`, `infer_url_kind`, and `is_url` [INFO] [stdout] --> src/parser/bracket_extension.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::url::{UrlKind, infer_url_kind, is_url}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winnow::stream::AsChar` [INFO] [stdout] --> src/parser/bracket_extension.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winnow::stream::AsChar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `take_while` [INFO] [stdout] --> src/parser/bracket_extension.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | use winnow::token::{take_until, take_while}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::node::parse_nodes` [INFO] [stdout] --> src/parser/bracket_extension.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::node::parse_nodes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/parser/deco.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | nodes: nodes, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `nodes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/url.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use mime_guess; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/parser/block.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | let _ = not(eof).parse_next(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `#[warn(clippy::let_unit_value)]` on by default [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 14 - let _ = not(eof).parse_next(input)?; [INFO] [stdout] 14 + not(eof).parse_next(input)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/code.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn parse_code_block<'s, E>(input: &mut &'s str, indent: usize) -> PResult> [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 8 - pub fn parse_code_block<'s, E>(input: &mut &'s str, indent: usize) -> PResult> [INFO] [stdout] 8 + pub fn parse_code_block(input: &mut &str, indent: usize) -> PResult> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/code_inline.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_inline_code<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 9 - pub fn parse_inline_code<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] 9 + pub fn parse_inline_code(input: &mut &str) -> PResult> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parser/deco.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | let decos = take_while(1.., |c| is_deco_char(c)).parse_next(&mut content)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `is_deco_char` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/math_inline.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_math_inline<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 9 - pub fn parse_math_inline<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] 9 + pub fn parse_math_inline(input: &mut &str) -> PResult> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/text.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn parse_text<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 7 - pub fn parse_text<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] 7 + pub fn parse_text(input: &mut &str) -> PResult> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/parser/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | /// as it consumes the input. [INFO] [stdout] | ^^^^^^^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/parser/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | /// no custom extensions are needed. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/url.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | .and_then(|segments| segments.last()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 14 - .and_then(|segments| segments.last()) [INFO] [stdout] 14 + .and_then(|mut segments| segments.next_back()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/url.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | .and_then(|name| name.split('.').last()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 15 - .and_then(|name| name.split('.').last()) [INFO] [stdout] 15 + .and_then(|name| name.split('.').next_back()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling aws-lc-rs v1.15.4 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.6.2 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.13.1 [INFO] [stdout] warning: unused imports: `DECO_CHARS` and `DOLLAR` [INFO] [stdout] --> src/parser/bracket.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::tokens::{DECO_CHARS, DOLLAR, ICON_SUFFIX, LBRACKET, RBRACKET}; [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::ast::Link` [INFO] [stdout] --> src/parser/bracket_extension.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ast::Link; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DECO_CHARS`, `DOLLAR`, and `ICON_SUFFIX` [INFO] [stdout] --> src/parser/bracket_extension.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::tokens::{DECO_CHARS, DOLLAR, ICON_SUFFIX, LBRACKET, RBRACKET}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UrlKind`, `infer_url_kind`, and `is_url` [INFO] [stdout] --> src/parser/bracket_extension.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::url::{UrlKind, infer_url_kind, is_url}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winnow::stream::AsChar` [INFO] [stdout] --> src/parser/bracket_extension.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winnow::stream::AsChar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `take_while` [INFO] [stdout] --> src/parser/bracket_extension.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | use winnow::token::{take_until, take_while}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::node::parse_nodes` [INFO] [stdout] --> src/parser/bracket_extension.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::node::parse_nodes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/parser/deco.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | nodes: nodes, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `nodes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/url.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use mime_guess; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> examples/cli.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | use cosy; [INFO] [stdout] | ^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Option::map` [INFO] [stdout] --> examples/speech_bubble_extension.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / if let Some(body) = content.strip_prefix("{ ") { [INFO] [stdout] 26 | | Some(MySyntax::SpeechBubble(body.to_string())) [INFO] [stdout] 27 | | } else { [INFO] [stdout] 28 | | None // Return none to fallback to the default parser [INFO] [stdout] 29 | | } [INFO] [stdout] | |_________^ help: try: `content.strip_prefix("{ ").map(|body| MySyntax::SpeechBubble(body.to_string()))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map [INFO] [stdout] = note: `#[warn(clippy::manual_map)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> examples/basic.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | use cosy; [INFO] [stdout] | ^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> examples/cli.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | if !(split_title.len() == 2) || split_title[0].is_empty() || split_title[1].is_empty() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(split_title.len() != 2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> examples/cli.rs:175:47 [INFO] [stdout] | [INFO] [stdout] 175 | let page: PageJson = serde_json::from_str(&json)?; [INFO] [stdout] | ^^^^^ help: change this to: `json` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `Option::map` [INFO] [stdout] --> src/extension.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | / if let Some(body) = content.strip_prefix("{ ") { [INFO] [stdout] 70 | | Some(MySyntax::SpeechBubble(body.to_string())) [INFO] [stdout] 71 | | } else { [INFO] [stdout] 72 | | None [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____________^ help: try: `content.strip_prefix("{ ").map(|body| MySyntax::SpeechBubble(body.to_string()))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map [INFO] [stdout] = note: `#[warn(clippy::manual_map)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/parser/block.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | let _ = not(eof).parse_next(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `#[warn(clippy::let_unit_value)]` on by default [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 14 - let _ = not(eof).parse_next(input)?; [INFO] [stdout] 14 + not(eof).parse_next(input)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/code.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn parse_code_block<'s, E>(input: &mut &'s str, indent: usize) -> PResult> [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 8 - pub fn parse_code_block<'s, E>(input: &mut &'s str, indent: usize) -> PResult> [INFO] [stdout] 8 + pub fn parse_code_block(input: &mut &str, indent: usize) -> PResult> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/code_inline.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_inline_code<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 9 - pub fn parse_inline_code<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] 9 + pub fn parse_inline_code(input: &mut &str) -> PResult> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/parser/deco.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | let decos = take_while(1.., |c| is_deco_char(c)).parse_next(&mut content)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `is_deco_char` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/math_inline.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn parse_math_inline<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 9 - pub fn parse_math_inline<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] 9 + pub fn parse_math_inline(input: &mut &str) -> PResult> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 's [INFO] [stdout] --> src/parser/text.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn parse_text<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 7 - pub fn parse_text<'s, T>(input: &mut &'s str) -> PResult> { [INFO] [stdout] 7 + pub fn parse_text(input: &mut &str) -> PResult> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/parser/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | /// as it consumes the input. [INFO] [stdout] | ^^^^^^^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/parser/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | /// no custom extensions are needed. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/url.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | .and_then(|segments| segments.last()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 14 - .and_then(|segments| segments.last()) [INFO] [stdout] 14 + .and_then(|mut segments| segments.next_back()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/url.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | .and_then(|name| name.split('.').last()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 15 - .and_then(|name| name.split('.').last()) [INFO] [stdout] 15 + .and_then(|name| name.split('.').next_back()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 29s [INFO] running `Command { std: "docker" "inspect" "5f488e896564142b67ec611741aee924e640d49da4893433144cb9b4cdeaf69f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f488e896564142b67ec611741aee924e640d49da4893433144cb9b4cdeaf69f", kill_on_drop: false }` [INFO] [stdout] 5f488e896564142b67ec611741aee924e640d49da4893433144cb9b4cdeaf69f