[INFO] cloning repository https://github.com/aravindgopall/sutra [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aravindgopall/sutra" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faravindgopall%2Fsutra", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faravindgopall%2Fsutra'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0cd925c51e8b2e2daa1fb2c6e3b914aada577e13 [INFO] linting aravindgopall/sutra against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faravindgopall%2Fsutra" "/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/aravindgopall/sutra [INFO] finished tweaking git repo https://github.com/aravindgopall/sutra [INFO] tweaked toml for git repo https://github.com/aravindgopall/sutra written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/aravindgopall/sutra 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/aravindgopall/sutra 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 stability v0.2.1 [INFO] [stderr] Downloaded ratatui v0.26.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] a7585fd280e901e69e0c1551481b3513e69a134d617dfc5fdb9899b6f89852eb [INFO] running `Command { std: "docker" "start" "-a" "a7585fd280e901e69e0c1551481b3513e69a134d617dfc5fdb9899b6f89852eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7585fd280e901e69e0c1551481b3513e69a134d617dfc5fdb9899b6f89852eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7585fd280e901e69e0c1551481b3513e69a134d617dfc5fdb9899b6f89852eb", kill_on_drop: false }` [INFO] [stdout] a7585fd280e901e69e0c1551481b3513e69a134d617dfc5fdb9899b6f89852eb [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] f4c05cfaeb05178eecaff7d8f8330a2fa0622954bc1d4f303b9371c8da71234c [INFO] running `Command { std: "docker" "start" "-a" "f4c05cfaeb05178eecaff7d8f8330a2fa0622954bc1d4f303b9371c8da71234c", kill_on_drop: false }` [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking home v0.5.11 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking compact_str v0.7.1 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking unicode-truncate v1.1.0 [INFO] [stderr] Checking which v6.0.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Compiling stability v0.2.1 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking clap v4.5.60 [INFO] [stderr] Checking ratatui v0.26.3 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking isutra v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/filters.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / /// High-precision filtering to avoid suggesting shell builtins and meta-commands. [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | pub fn is_banned_base(cmd0: &str) -> bool { [INFO] [stdout] | --------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 - /// High-precision filtering to avoid suggesting shell builtins and meta-commands. [INFO] [stdout] 1 + //! High-precision filtering to avoid suggesting shell builtins and meta-commands. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/filters.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / /// High-precision filtering to avoid suggesting shell builtins and meta-commands. [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | pub fn is_banned_base(cmd0: &str) -> bool { [INFO] [stdout] | --------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 - /// High-precision filtering to avoid suggesting shell builtins and meta-commands. [INFO] [stdout] 1 + //! High-precision filtering to avoid suggesting shell builtins and meta-commands. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `flatten()` will run forever if the iterator repeatedly produces an `Err` [INFO] [stdout] --> src/history.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | for line in br.lines().flatten() { [INFO] [stdout] | ^^^^^^^^^ help: replace with: `map_while(Result::ok)` [INFO] [stdout] | [INFO] [stdout] note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error [INFO] [stdout] --> src/history.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | for line in br.lines().flatten() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok [INFO] [stdout] = note: `#[warn(clippy::lines_filter_map_ok)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `flatten()` will run forever if the iterator repeatedly produces an `Err` [INFO] [stdout] --> src/history.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | for line in br.lines().flatten() { [INFO] [stdout] | ^^^^^^^^^ help: replace with: `map_while(Result::ok)` [INFO] [stdout] | [INFO] [stdout] note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error [INFO] [stdout] --> src/history.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | for line in br.lines().flatten() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok [INFO] [stdout] = note: `#[warn(clippy::lines_filter_map_ok)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/smriti.rs:71:43 [INFO] [stdout] | [INFO] [stdout] 71 | cwd_full.entry(canonical.clone()).or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/smriti.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | cwd_base.entry(base.clone()).or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `cand_tokens.get(0)` [INFO] [stdout] --> src/scoring.rs:73:36 [INFO] [stdout] | [INFO] [stdout] 73 | } else if let Some(base) = cand_tokens.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `cand_tokens.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `tokens.get(0)` [INFO] [stdout] --> src/suggest.rs:120:16 [INFO] [stdout] | [INFO] [stdout] 120 | let cmd0 = tokens.get(0).copied().unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `tokens.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/hooks.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | new_content.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `new_content.push('\n')` [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: the loop variable `i` is only used to index `cand_toks` [INFO] [stdout] --> src/main.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | for i in 0..n { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 57 - for i in 0..n { [INFO] [stdout] 57 + for in cand_toks.iter().take(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `in_toks` [INFO] [stdout] --> src/main.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | for i in n..in_toks.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 62 - for i in n..in_toks.len() { [INFO] [stdout] 62 + for in in_toks.iter().skip(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 196 | let import_bash = bash || (!bash && !zsh); // default both if none specified [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 196 - let import_bash = bash || (!bash && !zsh); // default both if none specified [INFO] [stdout] 196 + let import_bash = !(!bash && zsh); // default both if none specified [INFO] [stdout] | [INFO] [stdout] 196 - let import_bash = bash || (!bash && !zsh); // default both if none specified [INFO] [stdout] 196 + let import_bash = bash || !zsh; // default both if none specified [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:197:34 [INFO] [stdout] | [INFO] [stdout] 197 | let import_zsh = zsh || (!bash && !zsh); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 197 - let import_zsh = zsh || (!bash && !zsh); [INFO] [stdout] 197 + let import_zsh = !(!zsh && bash); [INFO] [stdout] | [INFO] [stdout] 197 - let import_zsh = zsh || (!bash && !zsh); [INFO] [stdout] 197 + let import_zsh = zsh || !bash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/main.rs:230:24 [INFO] [stdout] | [INFO] [stdout] 230 | let cmd0 = args.get(0).map(|s| s.as_str()).unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/smriti.rs:71:43 [INFO] [stdout] | [INFO] [stdout] 71 | cwd_full.entry(canonical.clone()).or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> src/smriti.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | cwd_base.entry(base.clone()).or_insert_with(HashMap::new) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `cand_tokens.get(0)` [INFO] [stdout] --> src/scoring.rs:73:36 [INFO] [stdout] | [INFO] [stdout] 73 | } else if let Some(base) = cand_tokens.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `cand_tokens.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `tokens.get(0)` [INFO] [stdout] --> src/suggest.rs:120:16 [INFO] [stdout] | [INFO] [stdout] 120 | let cmd0 = tokens.get(0).copied().unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `tokens.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `push_str()` using a single-character string literal [INFO] [stdout] --> src/hooks.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | new_content.push_str("\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `new_content.push('\n')` [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: the loop variable `i` is only used to index `cand_toks` [INFO] [stdout] --> src/main.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | for i in 0..n { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 57 - for i in 0..n { [INFO] [stdout] 57 + for in cand_toks.iter().take(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `in_toks` [INFO] [stdout] --> src/main.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | for i in n..in_toks.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 62 - for i in n..in_toks.len() { [INFO] [stdout] 62 + for in in_toks.iter().skip(n) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 196 | let import_bash = bash || (!bash && !zsh); // default both if none specified [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 196 - let import_bash = bash || (!bash && !zsh); // default both if none specified [INFO] [stdout] 196 + let import_bash = !(!bash && zsh); // default both if none specified [INFO] [stdout] | [INFO] [stdout] 196 - let import_bash = bash || (!bash && !zsh); // default both if none specified [INFO] [stdout] 196 + let import_bash = bash || !zsh; // default both if none specified [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:197:34 [INFO] [stdout] | [INFO] [stdout] 197 | let import_zsh = zsh || (!bash && !zsh); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 197 - let import_zsh = zsh || (!bash && !zsh); [INFO] [stdout] 197 + let import_zsh = !(!zsh && bash); [INFO] [stdout] | [INFO] [stdout] 197 - let import_zsh = zsh || (!bash && !zsh); [INFO] [stdout] 197 + let import_zsh = zsh || !bash; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `args.get(0)` [INFO] [stdout] --> src/main.rs:230:24 [INFO] [stdout] | [INFO] [stdout] 230 | let cmd0 = args.get(0).map(|s| s.as_str()).unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^^^ help: try: `args.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.35s [INFO] running `Command { std: "docker" "inspect" "f4c05cfaeb05178eecaff7d8f8330a2fa0622954bc1d4f303b9371c8da71234c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4c05cfaeb05178eecaff7d8f8330a2fa0622954bc1d4f303b9371c8da71234c", kill_on_drop: false }` [INFO] [stdout] f4c05cfaeb05178eecaff7d8f8330a2fa0622954bc1d4f303b9371c8da71234c