[INFO] cloning repository https://github.com/Grinshpon/red [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Grinshpon/red" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGrinshpon%2Fred", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGrinshpon%2Fred'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1be8cd15a2269f929971a278dee0646b400712a6 [INFO] building Grinshpon/red against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGrinshpon%2Fred" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Grinshpon/red on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Grinshpon/red [INFO] finished tweaking git repo https://github.com/Grinshpon/red [INFO] tweaked toml for git repo https://github.com/Grinshpon/red written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Grinshpon/red 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: bin.0.include [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded termion v1.5.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 390a226fa185502f55f4f8e827d178faf3ad87fac2347a6e8123b95c48458bc1 [INFO] running `Command { std: "docker" "start" "-a" "390a226fa185502f55f4f8e827d178faf3ad87fac2347a6e8123b95c48458bc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "390a226fa185502f55f4f8e827d178faf3ad87fac2347a6e8123b95c48458bc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "390a226fa185502f55f4f8e827d178faf3ad87fac2347a6e8123b95c48458bc1", kill_on_drop: false }` [INFO] [stdout] 390a226fa185502f55f4f8e827d178faf3ad87fac2347a6e8123b95c48458bc1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cdc6f79b7dbec2410cf1002de0917d6025b82021a3e688b743a5b4d3504fd36 [INFO] running `Command { std: "docker" "start" "-a" "6cdc6f79b7dbec2410cf1002de0917d6025b82021a3e688b743a5b4d3504fd36", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: bin.0.include [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling numtoa v0.1.0 [INFO] [stderr] Compiling termion v1.5.3 [INFO] [stderr] Compiling red-it v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `termion::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use termion::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::screen::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use termion::screen::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `stdin`, and `stdout` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Write, stdout, stdin}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::window::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::window::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/input.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/input.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::*` [INFO] [stdout] --> src/read.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::util::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/read.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | while (Path::new(&format!("{}{}",empty,".swp")).exists()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - while (Path::new(&format!("{}{}",empty,".swp")).exists()) { [INFO] [stdout] 58 + while Path::new(&format!("{}{}",empty,".swp")).exists() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `moveCursor` [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | macro_rules! moveCursor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/window/bottom_bar.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | fn left_text (val: String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/window/bottom_bar.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | fn right_text (val: String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/input.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut stdin = async_stdin().bytes(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_input` [INFO] [stdout] --> src/input.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut last_input = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/input.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn input_handler(scr: &mut dyn Write, ) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut stdin = async_stdin().bytes(); [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/input.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut last_input = String::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eof` [INFO] [stdout] --> src/read.rs:77:11 [INFO] [stdout] | [INFO] [stdout] 77 | let mut eof = false; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/read.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufR = BufReader::new(&rfile.swap); //may replace with with_capacity for large files [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/read.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | let mut eof = false; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_win` [INFO] [stdout] --> src/main.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | let mut main_win = read_file(&mut f); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | let mut main_win = read_file(&mut f); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mode` is never used [INFO] [stdout] --> src/window.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `command_mode`, `left_aligned`, and `right_aligned` are never read [INFO] [stdout] --> src/window/bottom_bar.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Bar { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 2 | command_mode: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | left_aligned: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | right_aligned: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `left_text` and `right_text` are never used [INFO] [stdout] --> src/window/bottom_bar.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl Bar { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | fn left_text (val: String) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | fn right_text (val: String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `width` are never read [INFO] [stdout] --> src/window/line_num.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct LineN { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 2 | offset: bool, //offset down 1 if tabbar is shown [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | width: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ch` and `position` are never read [INFO] [stdout] --> src/input.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Input { //will become command [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 11 | ch: Char, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | position: Pos, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `View` should have a snake case name [INFO] [stdout] --> src/window.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn View() -> View { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/read.rs:74:3 [INFO] [stdout] | [INFO] [stdout] 74 | rfile.swap.seek(SeekFrom::Start(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = rfile.swap.seek(SeekFrom::Start(0)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufR` should have a snake case name [INFO] [stdout] --> src/read.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufR = BufReader::new(&rfile.swap); //may replace with with_capacity for large files [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `buf_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.92s [INFO] running `Command { std: "docker" "inspect" "6cdc6f79b7dbec2410cf1002de0917d6025b82021a3e688b743a5b4d3504fd36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cdc6f79b7dbec2410cf1002de0917d6025b82021a3e688b743a5b4d3504fd36", kill_on_drop: false }` [INFO] [stdout] 6cdc6f79b7dbec2410cf1002de0917d6025b82021a3e688b743a5b4d3504fd36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16ef2e91a17349caf8633b469bb662f069d135af3c180d11ca1727b572fcf5b4 [INFO] running `Command { std: "docker" "start" "-a" "16ef2e91a17349caf8633b469bb662f069d135af3c180d11ca1727b572fcf5b4", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: bin.0.include [INFO] [stderr] Compiling red-it v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `termion::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use termion::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::screen::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use termion::screen::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `stdin`, and `stdout` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Write, stdout, stdin}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::window::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::window::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/input.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/input.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::*` [INFO] [stdout] --> src/read.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::util::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/read.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | while (Path::new(&format!("{}{}",empty,".swp")).exists()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - while (Path::new(&format!("{}{}",empty,".swp")).exists()) { [INFO] [stdout] 58 + while Path::new(&format!("{}{}",empty,".swp")).exists() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `moveCursor` [INFO] [stdout] --> src/main.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | macro_rules! moveCursor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/window/bottom_bar.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | fn left_text (val: String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/window/bottom_bar.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | fn right_text (val: String) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdin` [INFO] [stdout] --> src/input.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut stdin = async_stdin().bytes(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_input` [INFO] [stdout] --> src/input.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut last_input = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/input.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn input_handler(scr: &mut dyn Write, ) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut stdin = async_stdin().bytes(); [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/input.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut last_input = String::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eof` [INFO] [stdout] --> src/read.rs:77:11 [INFO] [stdout] | [INFO] [stdout] 77 | let mut eof = false; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/read.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufR = BufReader::new(&rfile.swap); //may replace with with_capacity for large files [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/read.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | let mut eof = false; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_win` [INFO] [stdout] --> src/main.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | let mut main_win = read_file(&mut f); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | let mut main_win = read_file(&mut f); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mode` is never used [INFO] [stdout] --> src/window.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `command_mode`, `left_aligned`, and `right_aligned` are never read [INFO] [stdout] --> src/window/bottom_bar.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Bar { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 2 | command_mode: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 3 | left_aligned: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | right_aligned: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `left_text` and `right_text` are never used [INFO] [stdout] --> src/window/bottom_bar.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl Bar { [INFO] [stdout] | -------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | fn left_text (val: String) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | fn right_text (val: String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `width` are never read [INFO] [stdout] --> src/window/line_num.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct LineN { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 2 | offset: bool, //offset down 1 if tabbar is shown [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | width: u16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ch` and `position` are never read [INFO] [stdout] --> src/input.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Input { //will become command [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 11 | ch: Char, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | position: Pos, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `View` should have a snake case name [INFO] [stdout] --> src/window.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn View() -> View { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `view` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/read.rs:74:3 [INFO] [stdout] | [INFO] [stdout] 74 | rfile.swap.seek(SeekFrom::Start(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = rfile.swap.seek(SeekFrom::Start(0)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bufR` should have a snake case name [INFO] [stdout] --> src/read.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | let mut bufR = BufReader::new(&rfile.swap); //may replace with with_capacity for large files [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `buf_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "16ef2e91a17349caf8633b469bb662f069d135af3c180d11ca1727b572fcf5b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16ef2e91a17349caf8633b469bb662f069d135af3c180d11ca1727b572fcf5b4", kill_on_drop: false }` [INFO] [stdout] 16ef2e91a17349caf8633b469bb662f069d135af3c180d11ca1727b572fcf5b4