[INFO] cloning repository https://github.com/danslocombe/froggycmd [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/danslocombe/froggycmd" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanslocombe%2Ffroggycmd", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanslocombe%2Ffroggycmd'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cf026a4aa532b567e405001e8d54c90f38bf173b [INFO] checking danslocombe/froggycmd against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanslocombe%2Ffroggycmd" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/danslocombe/froggycmd on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/danslocombe/froggycmd [INFO] finished tweaking git repo https://github.com/danslocombe/froggycmd [INFO] tweaked toml for git repo https://github.com/danslocombe/froggycmd written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/danslocombe/froggycmd 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bstr v1.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3325c459dd263d33cf386cd3df618cee7431feb0355e85edd652ec26139a863f [INFO] running `Command { std: "docker" "start" "-a" "3325c459dd263d33cf386cd3df618cee7431feb0355e85edd652ec26139a863f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3325c459dd263d33cf386cd3df618cee7431feb0355e85edd652ec26139a863f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3325c459dd263d33cf386cd3df618cee7431feb0355e85edd652ec26139a863f", kill_on_drop: false }` [INFO] [stdout] 3325c459dd263d33cf386cd3df618cee7431feb0355e85edd652ec26139a863f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb3b435156039aeed6ad760ac4d6fe96f159052c56085116647c5cbf16d138ed [INFO] running `Command { std: "docker" "start" "-a" "eb3b435156039aeed6ad760ac4d6fe96f159052c56085116647c5cbf16d138ed", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling parking_lot_core v0.9.4 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Checking once_cell v1.15.0 [INFO] [stderr] Checking bstr v1.0.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking signal-hook v0.3.14 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking froggycmd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | if (self.pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (self.pos == 0) { [INFO] [stdout] 82 + if self.pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | if (is_block_delimiter(x)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - if (is_block_delimiter(x)) { [INFO] [stdout] 87 + if is_block_delimiter(x) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | if (self.text.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if (self.text.len() > 0) { [INFO] [stdout] 97 + if self.text.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] 112 + self.text = if start_pos >= self.text.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/trie.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | if (s.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (s.len() == 0) { [INFO] [stdout] 38 + if s.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (node.node_char == s[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (node.node_char == s[0]) { [INFO] [stdout] 43 + if node.node_char == s[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | if (s.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (s.len() == 1) { [INFO] [stdout] 44 + if s.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] 58 + let final_count = if s.len() == 1 { 1 } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] 59 + let data = if s.len() == 1 { data } else { u32::MAX }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if (self.first_hack) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (self.first_hack) { [INFO] [stdout] 115 + if self.first_hack { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 118 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:131:16 [INFO] [stdout] | [INFO] [stdout] 131 | if (last + 1 >= level.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - if (last + 1 >= level.len()) { [INFO] [stdout] 131 + if last + 1 >= level.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | if (self.pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (self.pos == 0) { [INFO] [stdout] 82 + if self.pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | if (is_block_delimiter(x)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - if (is_block_delimiter(x)) { [INFO] [stdout] 87 + if is_block_delimiter(x) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | if (self.text.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if (self.text.len() > 0) { [INFO] [stdout] 97 + if self.text.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] 112 + self.text = if start_pos >= self.text.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 139 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bstr::ByteSlice` [INFO] [stdout] --> src/trie.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bstr::ByteSlice; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/trie.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyboardEnhancementFlags`, `PopKeyboardEnhancementFlags`, `PushKeyboardEnhancementFlags` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | self, KeyboardEnhancementFlags, PopKeyboardEnhancementFlags, PushKeyboardEnhancementFlags, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::ExecutableCommand` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crossterm::ExecutableCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match (event) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - match (event) { [INFO] [stdout] 22 + match event { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | if (s.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (s.len() == 0) { [INFO] [stdout] 38 + if s.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (node.node_char == s[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (node.node_char == s[0]) { [INFO] [stdout] 43 + if node.node_char == s[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | if (s.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (s.len() == 1) { [INFO] [stdout] 44 + if s.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] 58 + let final_count = if s.len() == 1 { 1 } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] 59 + let data = if s.len() == 1 { data } else { u32::MAX }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if (self.first_hack) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (self.first_hack) { [INFO] [stdout] 115 + if self.first_hack { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 118 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:131:16 [INFO] [stdout] | [INFO] [stdout] 131 | if (last + 1 >= level.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - if (last + 1 >= level.len()) { [INFO] [stdout] 131 + if last + 1 >= level.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 139 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyboardEnhancementFlags`, `PopKeyboardEnhancementFlags`, `PushKeyboardEnhancementFlags` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | self, KeyboardEnhancementFlags, PopKeyboardEnhancementFlags, PushKeyboardEnhancementFlags, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::ExecutableCommand` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crossterm::ExecutableCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match (event) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - match (event) { [INFO] [stdout] 22 + match event { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/trie.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for mut node in nodes.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_node` [INFO] [stdout] --> src/trie.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let current_node = Some(&nl[*index]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `score` is never read [INFO] [stdout] --> src/completer.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Completion { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 2 | pub text: String, [INFO] [stdout] 3 | pub score: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commands` is never read [INFO] [stdout] --> src/history_completer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HistoryCompleter { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | commands: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HistoryCompleter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `command` is never read [INFO] [stdout] --> src/history_completer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 12 | //time: blah [INFO] [stdout] 13 | command: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_history` is never read [INFO] [stdout] --> src/shell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Shell { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | global_history: HistoryCompleter, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_all` and `clone_insert` are never used [INFO] [stdout] --> src/shell.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Zipper { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn delete_all(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn clone_insert(&self, c: char) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/trie.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for mut node in nodes.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/shell.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 142 | Run, [INFO] [stdout] | ^^^ [INFO] [stdout] 143 | Exit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 144 | Execute(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 145 | Cls, [INFO] [stdout] | ^^^ [INFO] [stdout] 146 | [INFO] [stdout] 147 | Complete, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 148 | PartialComplete, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 149 | [INFO] [stdout] 150 | HistoryForward, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 151 | HistoryBack, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 152 | [INFO] [stdout] 153 | Search, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_node` [INFO] [stdout] --> src/trie.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let current_node = Some(&nl[*index]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `text` and `score` are never read [INFO] [stdout] --> src/completer.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Completion { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 2 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | pub score: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/trie.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TrieNode { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | data: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrieNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete` is never used [INFO] [stdout] --> src/completer.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Completer { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn complete<'a>(&'a self, prefix: &str) -> Self::CompletionIterator<'a>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commands` is never read [INFO] [stdout] --> src/history_completer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HistoryCompleter { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | commands: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HistoryCompleter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `command` is never read [INFO] [stdout] --> src/history_completer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 12 | //time: blah [INFO] [stdout] 13 | command: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_history` is never read [INFO] [stdout] --> src/shell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Shell { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | global_history: HistoryCompleter, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_all` and `clone_insert` are never used [INFO] [stdout] --> src/shell.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Zipper { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn delete_all(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn clone_insert(&self, c: char) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/shell.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 142 | Run, [INFO] [stdout] | ^^^ [INFO] [stdout] 143 | Exit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 144 | Execute(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 145 | Cls, [INFO] [stdout] | ^^^ [INFO] [stdout] 146 | [INFO] [stdout] 147 | Complete, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 148 | PartialComplete, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 149 | [INFO] [stdout] 150 | HistoryForward, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 151 | HistoryBack, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 152 | [INFO] [stdout] 153 | Search, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `weight`, `final_count`, and `data` are never read [INFO] [stdout] --> src/trie.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TrieNode { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | node_char: u8, [INFO] [stdout] 7 | weight: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | final_count: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | data: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrieNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `insert` are never used [INFO] [stdout] --> src/trie.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Trie { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn insert(&mut self, s: &[u8], data: u32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_trie_then_sort` is never used [INFO] [stdout] --> src/trie.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn insert_trie_then_sort(nodes: &mut Vec, s: &[u8], data: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_trie` is never used [INFO] [stdout] --> src/trie.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn insert_trie(nodes: &mut Vec, s: &[u8], data: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.69s [INFO] running `Command { std: "docker" "inspect" "eb3b435156039aeed6ad760ac4d6fe96f159052c56085116647c5cbf16d138ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb3b435156039aeed6ad760ac4d6fe96f159052c56085116647c5cbf16d138ed", kill_on_drop: false }` [INFO] [stdout] eb3b435156039aeed6ad760ac4d6fe96f159052c56085116647c5cbf16d138ed [INFO] checking danslocombe/froggycmd against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanslocombe%2Ffroggycmd" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/danslocombe/froggycmd on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/danslocombe/froggycmd [INFO] finished tweaking git repo https://github.com/danslocombe/froggycmd [INFO] tweaked toml for git repo https://github.com/danslocombe/froggycmd written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/danslocombe/froggycmd 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4648f77f742428d3c87ff6e119a817c62303caeb21010dd22e0f33e94d4bdb08 [INFO] running `Command { std: "docker" "start" "-a" "4648f77f742428d3c87ff6e119a817c62303caeb21010dd22e0f33e94d4bdb08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4648f77f742428d3c87ff6e119a817c62303caeb21010dd22e0f33e94d4bdb08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4648f77f742428d3c87ff6e119a817c62303caeb21010dd22e0f33e94d4bdb08", kill_on_drop: false }` [INFO] [stdout] 4648f77f742428d3c87ff6e119a817c62303caeb21010dd22e0f33e94d4bdb08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17d7460121f0936069f21d597a77ded36b5f852af68b931592d9b8909ccb123c [INFO] running `Command { std: "docker" "start" "-a" "17d7460121f0936069f21d597a77ded36b5f852af68b931592d9b8909ccb123c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling parking_lot_core v0.9.4 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking once_cell v1.15.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Checking bstr v1.0.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking signal-hook v0.3.14 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking froggycmd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | if (self.pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (self.pos == 0) { [INFO] [stdout] 82 + if self.pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | if (is_block_delimiter(x)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - if (is_block_delimiter(x)) { [INFO] [stdout] 87 + if is_block_delimiter(x) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | if (self.text.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if (self.text.len() > 0) { [INFO] [stdout] 97 + if self.text.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] 112 + self.text = if start_pos >= self.text.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/trie.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | if (s.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (s.len() == 0) { [INFO] [stdout] 38 + if s.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (node.node_char == s[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (node.node_char == s[0]) { [INFO] [stdout] 43 + if node.node_char == s[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | if (s.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (s.len() == 1) { [INFO] [stdout] 44 + if s.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] 58 + let final_count = if s.len() == 1 { 1 } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] 59 + let data = if s.len() == 1 { data } else { u32::MAX }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if (self.first_hack) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (self.first_hack) { [INFO] [stdout] 115 + if self.first_hack { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 118 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:131:16 [INFO] [stdout] | [INFO] [stdout] 131 | if (last + 1 >= level.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - if (last + 1 >= level.len()) { [INFO] [stdout] 131 + if last + 1 >= level.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 139 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyboardEnhancementFlags`, `PopKeyboardEnhancementFlags`, `PushKeyboardEnhancementFlags` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | self, KeyboardEnhancementFlags, PopKeyboardEnhancementFlags, PushKeyboardEnhancementFlags, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::ExecutableCommand` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crossterm::ExecutableCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match (event) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - match (event) { [INFO] [stdout] 22 + match event { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | if (self.pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (self.pos == 0) { [INFO] [stdout] 82 + if self.pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | if (is_block_delimiter(x)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - if (is_block_delimiter(x)) { [INFO] [stdout] 87 + if is_block_delimiter(x) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | if (self.text.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if (self.text.len() > 0) { [INFO] [stdout] 97 + if self.text.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shell.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - self.text = if (start_pos >= self.text.len()) { [INFO] [stdout] 112 + self.text = if start_pos >= self.text.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bstr::ByteSlice` [INFO] [stdout] --> src/trie.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bstr::ByteSlice; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/trie.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | if (s.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (s.len() == 0) { [INFO] [stdout] 38 + if s.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (node.node_char == s[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (node.node_char == s[0]) { [INFO] [stdout] 43 + if node.node_char == s[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 44 | if (s.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (s.len() == 1) { [INFO] [stdout] 44 + if s.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - let final_count = if (s.len() == 1) { 1 } else { 0 }; [INFO] [stdout] 58 + let final_count = if s.len() == 1 { 1 } else { 0 }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - let data = if (s.len() == 1) { data } else { u32::MAX }; [INFO] [stdout] 59 + let data = if s.len() == 1 { data } else { u32::MAX }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | if (self.first_hack) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (self.first_hack) { [INFO] [stdout] 115 + if self.first_hack { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 118 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/trie.rs:131:16 [INFO] [stdout] | [INFO] [stdout] 131 | if (last + 1 >= level.len()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 131 - if (last + 1 >= level.len()) { [INFO] [stdout] 131 + if last + 1 >= level.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/trie.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | while (self.current_node_level().len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - while (self.current_node_level().len() > 0) { [INFO] [stdout] 139 + while self.current_node_level().len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyboardEnhancementFlags`, `PopKeyboardEnhancementFlags`, `PushKeyboardEnhancementFlags` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | self, KeyboardEnhancementFlags, PopKeyboardEnhancementFlags, PushKeyboardEnhancementFlags, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::ExecutableCommand` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crossterm::ExecutableCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | match (event) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - match (event) { [INFO] [stdout] 22 + match event { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::{stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/trie.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for mut node in nodes.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_node` [INFO] [stdout] --> src/trie.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let current_node = Some(&nl[*index]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/trie.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for mut node in nodes.iter_mut() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_node` [INFO] [stdout] --> src/trie.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let current_node = Some(&nl[*index]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `text` and `score` are never read [INFO] [stdout] --> src/completer.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Completion { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 2 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | pub score: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `complete` is never used [INFO] [stdout] --> src/completer.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Completer { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn complete<'a>(&'a self, prefix: &str) -> Self::CompletionIterator<'a>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commands` is never read [INFO] [stdout] --> src/history_completer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HistoryCompleter { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | commands: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HistoryCompleter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `command` is never read [INFO] [stdout] --> src/history_completer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 12 | //time: blah [INFO] [stdout] 13 | command: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_history` is never read [INFO] [stdout] --> src/shell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Shell { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | global_history: HistoryCompleter, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_all` and `clone_insert` are never used [INFO] [stdout] --> src/shell.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Zipper { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn delete_all(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn clone_insert(&self, c: char) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/shell.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 142 | Run, [INFO] [stdout] | ^^^ [INFO] [stdout] 143 | Exit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 144 | Execute(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 145 | Cls, [INFO] [stdout] | ^^^ [INFO] [stdout] 146 | [INFO] [stdout] 147 | Complete, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 148 | PartialComplete, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 149 | [INFO] [stdout] 150 | HistoryForward, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 151 | HistoryBack, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 152 | [INFO] [stdout] 153 | Search, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `weight`, `final_count`, and `data` are never read [INFO] [stdout] --> src/trie.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TrieNode { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | node_char: u8, [INFO] [stdout] 7 | weight: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | final_count: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | data: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrieNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `insert` are never used [INFO] [stdout] --> src/trie.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Trie { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn insert(&mut self, s: &[u8], data: u32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_trie_then_sort` is never used [INFO] [stdout] --> src/trie.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn insert_trie_then_sort(nodes: &mut Vec, s: &[u8], data: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert_trie` is never used [INFO] [stdout] --> src/trie.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn insert_trie(nodes: &mut Vec, s: &[u8], data: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `score` is never read [INFO] [stdout] --> src/completer.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Completion { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 2 | pub text: String, [INFO] [stdout] 3 | pub score: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commands` is never read [INFO] [stdout] --> src/history_completer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HistoryCompleter { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 6 | commands: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HistoryCompleter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `command` is never read [INFO] [stdout] --> src/history_completer.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 12 | //time: blah [INFO] [stdout] 13 | command: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `global_history` is never read [INFO] [stdout] --> src/shell.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Shell { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | global_history: HistoryCompleter, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_all` and `clone_insert` are never used [INFO] [stdout] --> src/shell.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl Zipper { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn delete_all(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn clone_insert(&self, c: char) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/shell.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum Command { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 142 | Run, [INFO] [stdout] | ^^^ [INFO] [stdout] 143 | Exit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 144 | Execute(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 145 | Cls, [INFO] [stdout] | ^^^ [INFO] [stdout] 146 | [INFO] [stdout] 147 | Complete, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 148 | PartialComplete, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 149 | [INFO] [stdout] 150 | HistoryForward, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 151 | HistoryBack, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 152 | [INFO] [stdout] 153 | Search, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/trie.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TrieNode { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | data: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrieNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.40s [INFO] running `Command { std: "docker" "inspect" "17d7460121f0936069f21d597a77ded36b5f852af68b931592d9b8909ccb123c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17d7460121f0936069f21d597a77ded36b5f852af68b931592d9b8909ccb123c", kill_on_drop: false }` [INFO] [stdout] 17d7460121f0936069f21d597a77ded36b5f852af68b931592d9b8909ccb123c