[INFO] cloning repository https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicholasDrian%2FRust-CLI-Typing-Practice-for-IOS", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicholasDrian%2FRust-CLI-Typing-Practice-for-IOS'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b8c94b7c337f8b972d077223a07dd4b2ee9babb [INFO] checking NicholasDrian/Rust-CLI-Typing-Practice-for-IOS against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicholasDrian%2FRust-CLI-Typing-Practice-for-IOS" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS 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/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS [INFO] finished tweaking git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS [INFO] tweaked toml for git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive_more v0.14.1 [INFO] [stderr] Downloaded raw_tty v0.1.0 [INFO] [stderr] Downloaded termion v3.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] a5dd53d4434ad67739e25d87f593ff07762e7a894a810f33b5158820fc428691 [INFO] running `Command { std: "docker" "start" "-a" "a5dd53d4434ad67739e25d87f593ff07762e7a894a810f33b5158820fc428691", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5dd53d4434ad67739e25d87f593ff07762e7a894a810f33b5158820fc428691", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5dd53d4434ad67739e25d87f593ff07762e7a894a810f33b5158820fc428691", kill_on_drop: false }` [INFO] [stdout] a5dd53d4434ad67739e25d87f593ff07762e7a894a810f33b5158820fc428691 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 26875ed33d445a2c28d361db42845b7701eace5fbcb5ed16f709bd3471c8b264 [INFO] running `Command { std: "docker" "start" "-a" "26875ed33d445a2c28d361db42845b7701eace5fbcb5ed16f709bd3471c8b264", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking termios v0.3.3 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking termion v3.0.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling derive_more v0.14.1 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking raw_tty v0.1.0 [INFO] [stderr] Checking typing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] 15 + if line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] 19 + } else if line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/app/filter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | return lines.clone(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 9 | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] 15 + if line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] 19 + } else if line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_comment` [INFO] [stdout] --> src/app/filter.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/app/filter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | return lines.clone(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 9 | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/app/filter.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/app/filter.rs:29:44 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `golbal_correct_chars` [INFO] [stdout] --> src/app/typing.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_golbal_correct_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_total_chars` [INFO] [stdout] --> src/app/typing.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_total_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `correct_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_correct_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `total_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_total_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/app/typing.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/app/typing.rs:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/app/typing.rs:118:44 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/app/typing.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_comment` [INFO] [stdout] --> src/app/filter.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Going`, `InputPath`, and `InputExtension` are never constructed [INFO] [stdout] --> src/app.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Going, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | InputPath, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | InputExtension, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode`, `path`, and `extensions` are never read [INFO] [stdout] --> src/app.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 20 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | extensions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spaces_to_tabs` is never used [INFO] [stdout] --> src/app/filter.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/app/window.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Window { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | title: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/app/filter.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/app/filter.rs:29:44 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `golbal_correct_chars` [INFO] [stdout] --> src/app/typing.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_golbal_correct_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_total_chars` [INFO] [stdout] --> src/app/typing.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_total_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `correct_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_correct_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `total_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_total_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/app/typing.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/app/typing.rs:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/app/typing.rs:118:44 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/app/typing.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Going`, `InputPath`, and `InputExtension` are never constructed [INFO] [stdout] --> src/app.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Going, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | InputPath, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | InputExtension, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode`, `path`, and `extensions` are never read [INFO] [stdout] --> src/app.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 20 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | extensions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spaces_to_tabs` is never used [INFO] [stdout] --> src/app/filter.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/app/window.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Window { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | title: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.82s [INFO] running `Command { std: "docker" "inspect" "26875ed33d445a2c28d361db42845b7701eace5fbcb5ed16f709bd3471c8b264", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26875ed33d445a2c28d361db42845b7701eace5fbcb5ed16f709bd3471c8b264", kill_on_drop: false }` [INFO] [stdout] 26875ed33d445a2c28d361db42845b7701eace5fbcb5ed16f709bd3471c8b264 [INFO] checking NicholasDrian/Rust-CLI-Typing-Practice-for-IOS against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNicholasDrian%2FRust-CLI-Typing-Practice-for-IOS" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS 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/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS [INFO] finished tweaking git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS [INFO] tweaked toml for git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/NicholasDrian/Rust-CLI-Typing-Practice-for-IOS 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] da03637e395f72a2d1ced4a888b02c4a07dc4706c85825092e2dd15e0cc0d842 [INFO] running `Command { std: "docker" "start" "-a" "da03637e395f72a2d1ced4a888b02c4a07dc4706c85825092e2dd15e0cc0d842", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da03637e395f72a2d1ced4a888b02c4a07dc4706c85825092e2dd15e0cc0d842", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da03637e395f72a2d1ced4a888b02c4a07dc4706c85825092e2dd15e0cc0d842", kill_on_drop: false }` [INFO] [stdout] da03637e395f72a2d1ced4a888b02c4a07dc4706c85825092e2dd15e0cc0d842 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 6eba155976652c75a9cbcf494b608c9098f0925cb0ac62a62660d7af527149ba [INFO] running `Command { std: "docker" "start" "-a" "6eba155976652c75a9cbcf494b608c9098f0925cb0ac62a62660d7af527149ba", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking termios v0.3.3 [INFO] [stderr] Checking termion v3.0.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling derive_more v0.14.1 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking raw_tty v0.1.0 [INFO] [stderr] Checking typing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] 15 + if line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] 19 + } else if line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/app/filter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | return lines.clone(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 9 | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*') { [INFO] [stdout] 15 + if line.chars().nth(i).unwrap() == '/' && line.chars().nth(i).unwrap() == '*' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/app/filter.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - } else if (line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/') { [INFO] [stdout] 19 + } else if line.chars().nth(i).unwrap() == '*' && line.chars().nth(i).unwrap() == '/' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/app/filter.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | return lines.clone(); [INFO] [stdout] | -------------------- any code following this expression is unreachable [INFO] [stdout] 9 | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_comment` [INFO] [stdout] --> src/app/filter.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/app/filter.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/app/filter.rs:29:44 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `golbal_correct_chars` [INFO] [stdout] --> src/app/typing.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_golbal_correct_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_total_chars` [INFO] [stdout] --> src/app/typing.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_total_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `correct_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_correct_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `total_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_total_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/app/typing.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/app/typing.rs:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/app/typing.rs:118:44 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/app/typing.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_comment` [INFO] [stdout] --> src/app/filter.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut in_comment: bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_comment` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Going`, `InputPath`, and `InputExtension` are never constructed [INFO] [stdout] --> src/app.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Going, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | InputPath, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | InputExtension, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode`, `path`, and `extensions` are never read [INFO] [stdout] --> src/app.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 20 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | extensions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/app/filter.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/app/filter.rs:29:44 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `golbal_correct_chars` [INFO] [stdout] --> src/app/typing.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_golbal_correct_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_total_chars` [INFO] [stdout] --> src/app/typing.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_total_chars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `correct_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut correct_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_correct_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `total_chars` is assigned to, but never used [INFO] [stdout] --> src/app/typing.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut total_chars: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_total_chars` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut golbal_correct_chars: i32 = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/app/typing.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut global_total_chars: i32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/app/typing.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/app/typing.rs:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/app/typing.rs:118:44 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> src/app/typing.rs:118:59 [INFO] [stdout] | [INFO] [stdout] 118 | fn on_delete(text: &String, col: &mut i32, row: &mut i32, window: &Window) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spaces_to_tabs` is never used [INFO] [stdout] --> src/app/filter.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/app/window.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Window { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | title: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Going`, `InputPath`, and `InputExtension` are never constructed [INFO] [stdout] --> src/app.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Going, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | InputPath, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | InputExtension, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mode`, `path`, and `extensions` are never read [INFO] [stdout] --> src/app.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct App { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 20 | mode: Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | extensions: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spaces_to_tabs` is never used [INFO] [stdout] --> src/app/filter.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn spaces_to_tabs(lines: &Vec, count: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `title` is never read [INFO] [stdout] --> src/app/window.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Window { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | title: &'static str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.85s [INFO] running `Command { std: "docker" "inspect" "6eba155976652c75a9cbcf494b608c9098f0925cb0ac62a62660d7af527149ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6eba155976652c75a9cbcf494b608c9098f0925cb0ac62a62660d7af527149ba", kill_on_drop: false }` [INFO] [stdout] 6eba155976652c75a9cbcf494b608c9098f0925cb0ac62a62660d7af527149ba