[INFO] fetching crate mon-tools 0.0.1... [INFO] linting mon-tools-0.0.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate mon-tools 0.0.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate mon-tools 0.0.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate mon-tools 0.0.1 [INFO] tweaked toml for crates.io crate mon-tools 0.0.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate mon-tools 0.0.1 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 crates.io crate mon-tools 0.0.1 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml v0.9.8 [INFO] [stderr] Downloaded normalize-line-endings v0.3.0 [INFO] [stderr] Downloaded predicates-core v1.0.9 [INFO] [stderr] Downloaded terminal_size v0.4.3 [INFO] [stderr] Downloaded predicates v3.1.3 [INFO] [stderr] Downloaded wait-timeout v0.2.1 [INFO] [stderr] Downloaded supports-color v3.0.2 [INFO] [stderr] Downloaded clap_complete v4.5.61 [INFO] [stderr] Downloaded dialoguer v0.11.0 [INFO] [stderr] Downloaded termtree v0.5.1 [INFO] [stderr] Downloaded assert_cmd v2.1.1 [INFO] [stderr] Downloaded backtrace-ext v0.2.1 [INFO] [stderr] Downloaded fsevent-sys v4.1.0 [INFO] [stderr] Downloaded bstr v1.12.1 [INFO] [stderr] Downloaded supports-unicode v3.0.0 [INFO] [stderr] Downloaded is_ci v1.2.0 [INFO] [stderr] Downloaded mon-core v0.0.3 [INFO] [stderr] Downloaded colored v3.0.0 [INFO] [stderr] Downloaded unicode-width v0.1.14 [INFO] [stderr] Downloaded supports-hyperlinks v3.1.0 [INFO] [stderr] Downloaded unicode-linebreak v0.1.5 [INFO] [stderr] Downloaded clap_builder v4.5.52 [INFO] [stderr] Downloaded inotify-sys v0.1.5 [INFO] [stderr] Downloaded inotify v0.9.6 [INFO] [stderr] Downloaded miette v7.6.0 [INFO] [stderr] Downloaded kqueue-sys v1.0.4 [INFO] [stderr] Downloaded mio v0.8.11 [INFO] [stderr] Downloaded notify v6.1.1 [INFO] [stderr] Downloaded predicates-tree v1.0.12 [INFO] [stderr] Downloaded clap v4.5.52 [INFO] [stderr] Downloaded shell-words v1.1.0 [INFO] [stderr] Downloaded kqueue v1.1.1 [INFO] [stderr] Downloaded difflib v0.4.0 [INFO] [stderr] Downloaded miette-derive v7.6.0 [INFO] [stderr] Downloaded owo-colors v4.2.3 [INFO] [stderr] Downloaded filetime v0.2.26 [INFO] [stderr] Downloaded serde_yaml v0.9.34+deprecated [INFO] [stderr] Downloaded libredox v0.1.10 [INFO] [stderr] Downloaded float-cmp v0.10.0 [INFO] [stderr] Downloaded unsafe-libyaml v0.2.11 [INFO] [stderr] Downloaded toml_writer v1.0.4 [INFO] [stderr] Downloaded serde_spanned v1.0.3 [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] a4964937d00f9a439d936c0ef486463dc71ff390a182516ebebebb49e270a933 [INFO] running `Command { std: "docker" "start" "-a" "a4964937d00f9a439d936c0ef486463dc71ff390a182516ebebebb49e270a933", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4964937d00f9a439d936c0ef486463dc71ff390a182516ebebebb49e270a933", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4964937d00f9a439d936c0ef486463dc71ff390a182516ebebebb49e270a933", kill_on_drop: false }` [INFO] [stdout] a4964937d00f9a439d936c0ef486463dc71ff390a182516ebebebb49e270a933 [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] ff2672b036619a7724f8be889fb12002a6e05bad5e6094d9ca8d765dd1d2c2c6 [INFO] running `Command { std: "docker" "start" "-a" "ff2672b036619a7724f8be889fb12002a6e05bad5e6094d9ca8d765dd1d2c2c6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Checking unicode-width v0.2.2 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking gimli v0.32.3 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking rustc-demangle v0.1.26 [INFO] [stderr] Checking is_terminal_polyfill v1.70.2 [INFO] [stderr] Checking anstyle-query v1.1.5 [INFO] [stderr] Compiling owo-colors v4.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking clap_lex v0.7.6 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking unicode-linebreak v0.1.5 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking is_ci v1.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking clap_builder v4.5.52 [INFO] [stderr] Checking supports-color v3.0.2 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking supports-unicode v3.0.0 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking supports-hyperlinks v3.1.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking toml_writer v1.0.4 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Checking float-cmp v0.10.0 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling assert_cmd v2.1.1 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking colored v3.0.0 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking filetime v0.2.26 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking notify v6.1.1 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking terminal_size v0.4.3 [INFO] [stderr] Checking toml_parser v1.0.4 [INFO] [stderr] Checking serde_spanned v1.0.3 [INFO] [stderr] Checking toml_datetime v0.7.3 [INFO] [stderr] Checking addr2line v0.25.1 [INFO] [stderr] Checking toml v0.9.8 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking bstr v1.12.1 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling miette-derive v7.6.0 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking backtrace v0.3.76 [INFO] [stderr] Checking backtrace-ext v0.2.1 [INFO] [stderr] Checking miette v7.6.0 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Checking clap v4.5.52 [INFO] [stderr] Checking clap_complete v4.5.61 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking mon-core v0.0.3 [INFO] [stderr] Checking mon-tools v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 107 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 120 | Command::cargo_bin("mon") [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | Command::cargo_bin("mon") [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | Command::cargo_bin("mon") [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:150:28 [INFO] [stdout] | [INFO] [stdout] 150 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:162:28 [INFO] [stdout] | [INFO] [stdout] 162 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:168:28 [INFO] [stdout] | [INFO] [stdout] 168 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:179:28 [INFO] [stdout] | [INFO] [stdout] 179 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:208:28 [INFO] [stdout] | [INFO] [stdout] 208 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `assert_cmd::Command::cargo_bin`: incompatible with a custom cargo build-dir, see instead `cargo::cargo_bin_cmd!` [INFO] [stdout] --> tests/integration_tests.rs:222:28 [INFO] [stdout] | [INFO] [stdout] 222 | let mut cmd = Command::cargo_bin("mon").unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> tests/integration_tests.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | .args(&["fmt", "tests/tests/ok/composition.mon"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["fmt", "tests/tests/ok/composition.mon"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> tests/integration_tests.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | .args(&["fmt", "tests/tests/ok/composition.mon", "--style", "prettier"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["fmt", "tests/tests/ok/composition.mon", "--style", "prettier"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> tests/integration_tests.rs:143:15 [INFO] [stdout] | [INFO] [stdout] 143 | .args(&["fmt", "tests/tests/ok/composition.mon", "--check"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["fmt", "tests/tests/ok/composition.mon", "--check"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/commands/bundle.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let formatter = Formatter::new(FormatConfig::default()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `formatter` [INFO] [stdout] --> src/commands/bundle.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let formatter = Formatter::new(FormatConfig::default()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_formatter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_type` [INFO] [stdout] --> src/commands/init.rs:505:45 [INFO] [stdout] | [INFO] [stdout] 505 | fn create_from_template(template: Template, config_type: ConfigType) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `total_warnings` is assigned to, but never used [INFO] [stdout] --> src/commands/lint.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut total_warnings = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_total_warnings` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `total_warnings` is never read [INFO] [stdout] --> src/commands/lint.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | total_warnings += lint_result.warnings().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_type` [INFO] [stdout] --> src/commands/init.rs:505:45 [INFO] [stdout] | [INFO] [stdout] 505 | fn create_from_template(template: Template, config_type: ConfigType) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `total_warnings` is assigned to, but never used [INFO] [stdout] --> src/commands/lint.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut total_warnings = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_total_warnings` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `total_warnings` is never read [INFO] [stdout] --> src/commands/lint.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | total_warnings += lint_result.warnings().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/linter/api.rs:188:58 [INFO] [stdout] | [INFO] [stdout] 188 | fn detect_unused_symbols(&self, table: &SymbolTable, source: &str, result: &mut LintResult) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/linter/api.rs:188:58 [INFO] [stdout] | [INFO] [stdout] 188 | fn detect_unused_symbols(&self, table: &SymbolTable, source: &str, result: &mut LintResult) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `used_refs` [INFO] [stdout] --> src/linter/imports.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let used_refs = self.collect_used_references(root); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_used_refs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `used_refs` [INFO] [stdout] --> src/linter/imports.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let used_refs = self.collect_used_references(root); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_used_refs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_members` is never used [INFO] [stdout] --> src/formatter/advanced.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sort_members(members: &[Member], style: KeySortStyle) -> Vec { [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 `get_member_key` is never used [INFO] [stdout] --> src/formatter/advanced.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn get_member_key(member: &Member) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_comment_alignment` is never used [INFO] [stdout] --> src/formatter/advanced.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn calculate_comment_alignment(lines: &[(String, Option)]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `align_comment_at` is never used [INFO] [stdout] --> src/formatter/advanced.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn align_comment_at(content: &str, comment: &str, column: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_diagnostic_with_range`, `add_warning`, `add_error`, and `add_info` are never used [INFO] [stdout] --> src/linter/mod.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl LintResult { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn add_diagnostic_with_range( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn add_warning(&mut self, _rule: &str, message: String, location: Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn add_error(&mut self, _rule: &str, message: String, location: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn add_info(&mut self, _rule: &str, message: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `suggest_type_validation` is never read [INFO] [stdout] --> src/linter/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct LintConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 202 | pub suggest_type_validation: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LintConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalysisService` is never constructed [INFO] [stdout] --> src/linter/api.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AnalysisService { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `analyze_document`, `build_symbol_table`, `build_symbols_from_value`, `get_value_preview`, and `detect_unused_symbols` are never used [INFO] [stdout] --> src/linter/api.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl AnalysisService { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 38 | /// Creates a new analysis service with the given configuration. [INFO] [stdout] 39 | pub fn new(config: LintConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn analyze_document(&self, source: &str, file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn build_symbol_table(&self, doc: &MonDocument, source: &str, table: &mut SymbolTable) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn build_symbols_from_value(&self, value: &MonValue, source: &str, table: &mut SymbolTable) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn get_value_preview(&self, value: &MonValue) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn detect_unused_symbols(&self, table: &SymbolTable, source: &str, result: &mut LintResult) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnalysisResult` is never constructed [INFO] [stdout] --> src/linter/api.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct AnalysisResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_errors`, `errors`, and `warnings` are never used [INFO] [stdout] --> src/linter/api.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 218 | impl AnalysisResult { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 219 | /// Checks if there are any error-level diagnostics. [INFO] [stdout] 220 | pub fn has_errors(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn errors(&self) -> Vec<&crate::linter::Diagnostic> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn warnings(&self) -> Vec<&crate::linter::Diagnostic> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title`, `description`, and `config_key` are never used [INFO] [stdout] --> src/linter/diagnostic.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl DiagnosticCode { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn title(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn description(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn config_key(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `label` is never used [INFO] [stdout] --> src/linter/diagnostic.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl DiagnosticSeverity { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn label(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_byte_offset` are never used [INFO] [stdout] --> src/linter/position.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Position { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn new(line: u32, character: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn from_byte_offset(source: &str, byte_offset: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_byte_offsets`, and `contains` are never used [INFO] [stdout] --> src/linter/position.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 94 | impl Range { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 95 | /// Creates a new range. [INFO] [stdout] 96 | pub fn new(start: Position, end: Position) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn from_byte_offsets(source: &str, start_offset: usize, end_offset: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn contains(&self, position: Position) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/linter/position.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl Location { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 155 | /// Creates a new location. [INFO] [stdout] 156 | pub fn new(uri: String, range: Range) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LintRule` is never used [INFO] [stdout] --> src/linter/rules.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum LintRule { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `description` are never used [INFO] [stdout] --> src/linter/rules.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl LintRule { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 16 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn description(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Symbol` is never constructed [INFO] [stdout] --> src/linter/symbol_table.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Symbol { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SymbolKind` is never used [INFO] [stdout] --> src/linter/symbol_table.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum SymbolKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SymbolReference` is never constructed [INFO] [stdout] --> src/linter/symbol_table.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct SymbolReference { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferenceKind` is never used [INFO] [stdout] --> src/linter/symbol_table.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum ReferenceKind { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SymbolTable` is never constructed [INFO] [stdout] --> src/linter/symbol_table.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct SymbolTable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/linter/symbol_table.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 135 | impl SymbolTable { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 136 | /// Creates a new empty symbol table. [INFO] [stdout] 137 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn add_symbol(&mut self, symbol: Symbol) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn add_reference(&mut self, reference: SymbolReference) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn find_symbol(&self, name: &str, kind: SymbolKind) -> Option<&Symbol> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn find_references(&self, name: &str, kind: SymbolKind) -> &[SymbolReference] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn symbols_by_kind(&self, kind: SymbolKind) -> Vec<&Symbol> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn is_unused(&self, name: &str, kind: SymbolKind) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn find_unused_symbols(&self, kind: SymbolKind) -> Vec<&Symbol> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn symbol_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn reference_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_members` is never used [INFO] [stdout] --> src/formatter/advanced.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sort_members(members: &[Member], style: KeySortStyle) -> Vec { [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 `get_member_key` is never used [INFO] [stdout] --> src/formatter/advanced.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn get_member_key(member: &Member) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_warning`, `add_error`, and `add_info` are never used [INFO] [stdout] --> src/linter/mod.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl LintResult { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn add_warning(&mut self, _rule: &str, message: String, location: Option) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn add_error(&mut self, _rule: &str, message: String, location: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn add_info(&mut self, _rule: &str, message: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `suggest_type_validation` is never read [INFO] [stdout] --> src/linter/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct LintConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 202 | pub suggest_type_validation: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LintConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source` is never read [INFO] [stdout] --> src/linter/api.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct AnalysisResult { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 215 | pub source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalysisResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_errors`, `errors`, and `warnings` are never used [INFO] [stdout] --> src/linter/api.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 218 | impl AnalysisResult { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 219 | /// Checks if there are any error-level diagnostics. [INFO] [stdout] 220 | pub fn has_errors(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn errors(&self) -> Vec<&crate::linter::Diagnostic> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn warnings(&self) -> Vec<&crate::linter::Diagnostic> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title`, `description`, and `config_key` are never used [INFO] [stdout] --> src/linter/diagnostic.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl DiagnosticCode { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn title(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn description(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn config_key(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `label` is never used [INFO] [stdout] --> src/linter/diagnostic.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl DiagnosticSeverity { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn label(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/linter/position.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl Location { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 155 | /// Creates a new location. [INFO] [stdout] 156 | pub fn new(uri: String, range: Range) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LintRule` is never used [INFO] [stdout] --> src/linter/rules.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum LintRule { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `description` are never used [INFO] [stdout] --> src/linter/rules.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl LintRule { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 16 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn description(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `symbols_by_kind` and `clear` are never used [INFO] [stdout] --> src/linter/symbol_table.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 135 | impl SymbolTable { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn symbols_by_kind(&self, kind: SymbolKind) -> Vec<&Symbol> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/commands/compile.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | content.push_str(&"└── docs/\n\ [INFO] [stdout] | __________________________^ [INFO] [stdout] 320 | | ├── structure.md # Data structure documentation\n\ [INFO] [stdout] 321 | | └── stats.json # Statistics and metadata\n\ [INFO] [stdout] 322 | | ```\n\n".to_string()); [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] help: use [INFO] [stdout] | [INFO] [stdout] 319 ~ content.push_str("└── docs/\n\ [INFO] [stdout] 320 ~ ├── structure.md # Data structure documentation\n\ [INFO] [stdout] 321 ~ └── stats.json # Statistics and metadata\n\ [INFO] [stdout] 322 ~ ```\n\n"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/commands/compile.rs:384:15 [INFO] [stdout] | [INFO] [stdout] 384 | docs_dir: &std::path::PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 384 - docs_dir: &std::path::PathBuf, [INFO] [stdout] 384 + docs_dir: &Path, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/commands/compile.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | content.push_str(&"└── docs/\n\ [INFO] [stdout] | __________________________^ [INFO] [stdout] 320 | | ├── structure.md # Data structure documentation\n\ [INFO] [stdout] 321 | | └── stats.json # Statistics and metadata\n\ [INFO] [stdout] 322 | | ```\n\n".to_string()); [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] help: use [INFO] [stdout] | [INFO] [stdout] 319 ~ content.push_str("└── docs/\n\ [INFO] [stdout] 320 ~ ├── structure.md # Data structure documentation\n\ [INFO] [stdout] 321 ~ └── stats.json # Statistics and metadata\n\ [INFO] [stdout] 322 ~ ```\n\n"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&PathBuf` instead of `&Path` involves a new object where a slice will do [INFO] [stdout] --> src/commands/compile.rs:384:15 [INFO] [stdout] | [INFO] [stdout] 384 | docs_dir: &std::path::PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 384 - docs_dir: &std::path::PathBuf, [INFO] [stdout] 384 + docs_dir: &Path, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:281:91 [INFO] [stdout] | [INFO] [stdout] 281 | if inner_indent.len() + formatted_item.len() > self.config.max_line_width { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 282 | | result.push_str(&formatted_item); [INFO] [stdout] 283 | | } else { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:283:24 [INFO] [stdout] | [INFO] [stdout] 283 | } else { [INFO] [stdout] | ________________________^ [INFO] [stdout] 284 | | result.push_str(&formatted_item); [INFO] [stdout] 285 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] = note: `#[warn(clippy::if_same_then_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:288:40 [INFO] [stdout] | [INFO] [stdout] 288 | if i < items.len() - 1 { [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 289 | | result.push(','); [INFO] [stdout] 290 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:290:64 [INFO] [stdout] | [INFO] [stdout] 290 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 291 | | result.push(','); [INFO] [stdout] 292 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:335:36 [INFO] [stdout] | [INFO] [stdout] 335 | if i < items.len() - 1 { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 336 | | result.push(','); [INFO] [stdout] 337 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:337:60 [INFO] [stdout] | [INFO] [stdout] 337 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 338 | | result.push(','); [INFO] [stdout] 339 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:436:42 [INFO] [stdout] | [INFO] [stdout] 436 | if i < members.len() - 1 { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 437 | | result.push(','); [INFO] [stdout] 438 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:438:64 [INFO] [stdout] | [INFO] [stdout] 438 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 439 | | result.push(','); [INFO] [stdout] 440 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:514:56 [INFO] [stdout] | [INFO] [stdout] 514 | if i < struct_def.fields.len() - 1 { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 515 | | result.push(','); [INFO] [stdout] 516 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:516:68 [INFO] [stdout] | [INFO] [stdout] 516 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 517 | | result.push(','); [INFO] [stdout] 518 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:536:56 [INFO] [stdout] | [INFO] [stdout] 536 | if i < enum_def.variants.len() - 1 { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 537 | | result.push(','); [INFO] [stdout] 538 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:538:68 [INFO] [stdout] | [INFO] [stdout] 538 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 539 | | result.push(','); [INFO] [stdout] 540 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/formatter/watch.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | ... if !path.extension().is_some_and(|e| e == "mon") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `path.extension().is_none_or(|e| e != "mon")` [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 `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/linter/imports.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | / if name.contains('.') { [INFO] [stdout] 89 | | *count += 1; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 86 ~ MonValueKind::Alias(name) | MonValueKind::ArraySpread(name) [INFO] [stdout] 87 | // Namespaced references contain a dot [INFO] [stdout] 88 ~ if name.contains('.') => { [INFO] [stdout] 89 | *count += 1; [INFO] [stdout] 90 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/linter/imports.rs:99:29 [INFO] [stdout] | [INFO] [stdout] 99 | / ... if name.contains('.') { [INFO] [stdout] 100 | | ... *count += 1; [INFO] [stdout] 101 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 98 ~ Member::Spread(name) [INFO] [stdout] 99 ~ if name.contains('.') => { [INFO] [stdout] 100 | *count += 1; [INFO] [stdout] 101 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:281:91 [INFO] [stdout] | [INFO] [stdout] 281 | if inner_indent.len() + formatted_item.len() > self.config.max_line_width { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 282 | | result.push_str(&formatted_item); [INFO] [stdout] 283 | | } else { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:283:24 [INFO] [stdout] | [INFO] [stdout] 283 | } else { [INFO] [stdout] | ________________________^ [INFO] [stdout] 284 | | result.push_str(&formatted_item); [INFO] [stdout] 285 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] = note: `#[warn(clippy::if_same_then_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:288:40 [INFO] [stdout] | [INFO] [stdout] 288 | if i < items.len() - 1 { [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 289 | | result.push(','); [INFO] [stdout] 290 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:290:64 [INFO] [stdout] | [INFO] [stdout] 290 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 291 | | result.push(','); [INFO] [stdout] 292 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:335:36 [INFO] [stdout] | [INFO] [stdout] 335 | if i < items.len() - 1 { [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 336 | | result.push(','); [INFO] [stdout] 337 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:337:60 [INFO] [stdout] | [INFO] [stdout] 337 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 338 | | result.push(','); [INFO] [stdout] 339 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:436:42 [INFO] [stdout] | [INFO] [stdout] 436 | if i < members.len() - 1 { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 437 | | result.push(','); [INFO] [stdout] 438 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:438:64 [INFO] [stdout] | [INFO] [stdout] 438 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 439 | | result.push(','); [INFO] [stdout] 440 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:514:56 [INFO] [stdout] | [INFO] [stdout] 514 | if i < struct_def.fields.len() - 1 { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 515 | | result.push(','); [INFO] [stdout] 516 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:516:68 [INFO] [stdout] | [INFO] [stdout] 516 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 517 | | result.push(','); [INFO] [stdout] 518 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/formatter/format.rs:536:56 [INFO] [stdout] | [INFO] [stdout] 536 | if i < enum_def.variants.len() - 1 { [INFO] [stdout] | ________________________________________________________^ [INFO] [stdout] 537 | | result.push(','); [INFO] [stdout] 538 | | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/formatter/format.rs:538:68 [INFO] [stdout] | [INFO] [stdout] 538 | } else if self.should_add_trailing_comma(true) { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 539 | | result.push(','); [INFO] [stdout] 540 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/formatter/watch.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | ... if !path.extension().is_some_and(|e| e == "mon") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `path.extension().is_none_or(|e| e != "mon")` [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: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/linter/complexity.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | source.push_str("}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `source.push('}')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] = note: `#[warn(clippy::single_char_add_str)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/linter/imports.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | / if name.contains('.') { [INFO] [stdout] 89 | | *count += 1; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 86 ~ MonValueKind::Alias(name) | MonValueKind::ArraySpread(name) [INFO] [stdout] 87 | // Namespaced references contain a dot [INFO] [stdout] 88 ~ if name.contains('.') => { [INFO] [stdout] 89 | *count += 1; [INFO] [stdout] 90 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/linter/imports.rs:99:29 [INFO] [stdout] | [INFO] [stdout] 99 | / ... if name.contains('.') { [INFO] [stdout] 100 | | ... *count += 1; [INFO] [stdout] 101 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 98 ~ Member::Spread(name) [INFO] [stdout] 99 ~ if name.contains('.') => { [INFO] [stdout] 100 | *count += 1; [INFO] [stdout] 101 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/linter/tests.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | source.push_str("}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `source.push('}')` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.46s [INFO] running `Command { std: "docker" "inspect" "ff2672b036619a7724f8be889fb12002a6e05bad5e6094d9ca8d765dd1d2c2c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff2672b036619a7724f8be889fb12002a6e05bad5e6094d9ca8d765dd1d2c2c6", kill_on_drop: false }` [INFO] [stdout] ff2672b036619a7724f8be889fb12002a6e05bad5e6094d9ca8d765dd1d2c2c6