[INFO] cloning repository https://github.com/VladimirMarkelov/tspss [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VladimirMarkelov/tspss" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVladimirMarkelov%2Ftspss", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVladimirMarkelov%2Ftspss'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e533657cc02719450299462c3b2fc6aa18805470 [INFO] checking VladimirMarkelov/tspss/e533657cc02719450299462c3b2fc6aa18805470 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVladimirMarkelov%2Ftspss" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VladimirMarkelov/tspss on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VladimirMarkelov/tspss [INFO] finished tweaking git repo https://github.com/VladimirMarkelov/tspss [INFO] tweaked toml for git repo https://github.com/VladimirMarkelov/tspss written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/VladimirMarkelov/tspss 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5b23bc15315f4dec11ba2c9f46a4c2eff80f3b5ab8e29007818a0df0fdb641d [INFO] running `Command { std: "docker" "start" "-a" "d5b23bc15315f4dec11ba2c9f46a4c2eff80f3b5ab8e29007818a0df0fdb641d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5b23bc15315f4dec11ba2c9f46a4c2eff80f3b5ab8e29007818a0df0fdb641d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5b23bc15315f4dec11ba2c9f46a4c2eff80f3b5ab8e29007818a0df0fdb641d", kill_on_drop: false }` [INFO] [stdout] d5b23bc15315f4dec11ba2c9f46a4c2eff80f3b5ab8e29007818a0df0fdb641d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2053ef0824400e26e5f3ffe47a6f82751dcac6612664950033ea3d9b94ac1161 [INFO] running `Command { std: "docker" "start" "-a" "2053ef0824400e26e5f3ffe47a6f82751dcac6612664950033ea3d9b94ac1161", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking nanorand v0.4.4 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking signal-hook v0.1.17 [INFO] [stderr] Checking crossterm v0.18.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking simplelog v0.7.6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking tspss v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/calc.rs (22 fixes) [INFO] [stderr] Fixed src/ui.rs (37 fixes) [INFO] [stderr] Fixed src/expr.rs (2 fixes) [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stderr] Fixed src/ops.rs (1 fix) [INFO] [stderr] Fixed src/panel.rs (7 fixes) [INFO] [stderr] Fixed src/listbox.rs (7 fixes) [INFO] [stderr] Fixed src/edit.rs (7 fixes) [INFO] [stderr] Fixed src/stack.rs (2 fixes) [INFO] [stderr] Fixed src/parse.rs (5 fixes) [INFO] [stderr] Fixed src/sheet.rs (12 fixes) [INFO] [stderr] Fixed src/label.rs (8 fixes) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Page_ID` should have an upper camel case name [INFO] [stdout] --> src/ui.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Page_ID(usize), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `PageId` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `unicode_width::UnicodeWidthChar` [INFO] [stdout] --> src/edit.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use unicode_width::UnicodeWidthChar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/main.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | use ui::{WidgetStack,Context,Widget,Transition,Msg,Command}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/sheet.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ui::{Widget,Transition}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/ui.rs:321:14 [INFO] [stdout] | [INFO] [stdout] 321 | for (idx, w) in self.widgets.iter_mut().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color, border: Border) -> Panel { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, fg: Color, bg: Color, text: &str) -> Label { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/label.rs:34:66 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color) -> ListBox { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:108:33 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:108:48 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:157:31 [INFO] [stdout] | [INFO] [stdout] 157 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/listbox.rs:176:30 [INFO] [stdout] | [INFO] [stdout] 176 | fn on_command(&mut self, cmd: Msg) -> Result { Ok(Transition::EventPass) } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, fg: Color, bg: Color, text: &str) -> Edit { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:92:33 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:92:48 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:200:31 [INFO] [stdout] | [INFO] [stdout] 200 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | fn draw_header(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | fn draw_cells(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/calc.rs:293:31 [INFO] [stdout] | [INFO] [stdout] 293 | fn process_key(&mut self, c: char) -> Transition { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifiers` [INFO] [stdout] --> src/calc.rs:321:51 [INFO] [stdout] | [INFO] [stdout] 321 | fn process_enter(&mut self, scr: &mut Screen, modifiers: KeyModifiers) -> Transition { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifiers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:379:39 [INFO] [stdout] | [INFO] [stdout] 379 | fn process_event_inner(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:581:22 [INFO] [stdout] | [INFO] [stdout] 581 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:593:22 [INFO] [stdout] | [INFO] [stdout] 593 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:637:22 [INFO] [stdout] | [INFO] [stdout] 637 | let (args, what) = self.parse_cmd_one_of(args, |s| s=="row" || s=="col" || s=="column"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:694:21 [INFO] [stdout] | [INFO] [stdout] 694 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:725:21 [INFO] [stdout] | [INFO] [stdout] 725 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/calc.rs:842:31 [INFO] [stdout] | [INFO] [stdout] 842 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `do_calc` is never read [INFO] [stdout] --> src/sheet.rs:506:17 [INFO] [stdout] | [INFO] [stdout] 506 | let mut do_calc = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/sheet.rs:1136:21 [INFO] [stdout] | [INFO] [stdout] 1136 | Err(e) => return expr.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/parse.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | let c2 = Pos::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stl` [INFO] [stdout] --> src/parse.rs:412:10 [INFO] [stdout] | [INFO] [stdout] 412 | let (stl, ok) = parse_literal(st, "("); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_stl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:428:10 [INFO] [stdout] | [INFO] [stdout] 428 | let (st, ok) = parse_literal(s, "\""); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:440:10 [INFO] [stdout] | [INFO] [stdout] 440 | let (st, id) = parse_while(s, |c| ('a'..='z').contains(&c) || ('A'..='Z').contains(&c) || c == '$'); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:246:19 [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:259:19 [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:272:19 [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Double` is never constructed [INFO] [stdout] --> src/primitive.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Border { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | Double, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Border` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width`, `height`, and `resize` are never used [INFO] [stdout] --> src/primitive.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Screen { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn width(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn height(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn resize(&mut self, new_w: u16, new_h: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ui.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(Dialog), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Msg` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 42 | Ok(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `hide` and `show` are never used [INFO] [stdout] --> src/ui.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait Widget { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 78 | fn hide(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | fn show(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_submenu` is never used [INFO] [stdout] --> src/listbox.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ListItem { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn new_submenu(s: &str, dlg: Dialog) -> ListItem { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_command` is never used [INFO] [stdout] --> src/edit.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Edit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn with_command(self, command: Dialog) -> Edit { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `process_key` is never used [INFO] [stdout] --> src/calc.rs:293:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Calc { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 293 | fn process_key(&mut self, c: char) -> Transition { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align` is never read [INFO] [stdout] --> src/sheet.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Attr { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub align: Align, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_default` is never used [INFO] [stdout] --> src/sheet.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl OptionAttr { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 63 | fn is_default(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sheet.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | Cell(usize), // count [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MoveBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 76 | Cell(()), // count [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Page`, `Edge`, and `End` are never constructed [INFO] [stdout] --> src/sheet.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 75 | enum MoveBy { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 76 | Cell(usize), // count [INFO] [stdout] 77 | Page(usize), // count [INFO] [stdout] | ^^^^ [INFO] [stdout] 78 | Edge, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_default` is never used [INFO] [stdout] --> src/sheet.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 226 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | fn is_default(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_cell_attr` is never used [INFO] [stdout] --> src/sheet.rs:529:12 [INFO] [stdout] | [INFO] [stdout] 307 | impl Sheet { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 529 | pub fn set_cell_attr(&mut self, col: usize, row: usize, attr: OptionAttr) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Row` and `Col` are never constructed [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum Range { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | Row(usize), // entire row [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | Col(usize), // entire col [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Range` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_to_bool` is never used [INFO] [stdout] --> src/expr.rs:308:4 [INFO] [stdout] | [INFO] [stdout] 308 | fn try_to_bool(a: Arg) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/stack.rs (1 fix) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Page_ID` should have an upper camel case name [INFO] [stdout] --> src/ui.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Page_ID(usize), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `PageId` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `unicode_width::UnicodeWidthChar` [INFO] [stdout] --> src/edit.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use unicode_width::UnicodeWidthChar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/main.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | use ui::{WidgetStack,Context,Widget,Transition,Msg,Command}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/sheet.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ui::{Widget,Transition}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/ui.rs:321:14 [INFO] [stdout] | [INFO] [stdout] 321 | for (idx, w) in self.widgets.iter_mut().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color, border: Border) -> Panel { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, fg: Color, bg: Color, text: &str) -> Label { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/label.rs:34:66 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color) -> ListBox { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:108:33 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:108:48 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:157:31 [INFO] [stdout] | [INFO] [stdout] 157 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/listbox.rs:176:30 [INFO] [stdout] | [INFO] [stdout] 176 | fn on_command(&mut self, cmd: Msg) -> Result { Ok(Transition::EventPass) } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, fg: Color, bg: Color, text: &str) -> Edit { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:92:33 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:92:48 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:200:31 [INFO] [stdout] | [INFO] [stdout] 200 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | fn draw_header(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | fn draw_cells(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/calc.rs:293:31 [INFO] [stdout] | [INFO] [stdout] 293 | fn process_key(&mut self, c: char) -> Transition { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifiers` [INFO] [stdout] --> src/calc.rs:321:51 [INFO] [stdout] | [INFO] [stdout] 321 | fn process_enter(&mut self, scr: &mut Screen, modifiers: KeyModifiers) -> Transition { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifiers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:379:39 [INFO] [stdout] | [INFO] [stdout] 379 | fn process_event_inner(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:581:22 [INFO] [stdout] | [INFO] [stdout] 581 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:593:22 [INFO] [stdout] | [INFO] [stdout] 593 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:637:22 [INFO] [stdout] | [INFO] [stdout] 637 | let (args, what) = self.parse_cmd_one_of(args, |s| s=="row" || s=="col" || s=="column"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:694:21 [INFO] [stdout] | [INFO] [stdout] 694 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:725:21 [INFO] [stdout] | [INFO] [stdout] 725 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/calc.rs:842:31 [INFO] [stdout] | [INFO] [stdout] 842 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `do_calc` is never read [INFO] [stdout] --> src/sheet.rs:506:17 [INFO] [stdout] | [INFO] [stdout] 506 | let mut do_calc = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/sheet.rs:1136:21 [INFO] [stdout] | [INFO] [stdout] 1136 | Err(e) => return expr.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/parse.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | let c2 = Pos::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stl` [INFO] [stdout] --> src/parse.rs:412:10 [INFO] [stdout] | [INFO] [stdout] 412 | let (stl, ok) = parse_literal(st, "("); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_stl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:428:10 [INFO] [stdout] | [INFO] [stdout] 428 | let (st, ok) = parse_literal(s, "\""); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:440:10 [INFO] [stdout] | [INFO] [stdout] 440 | let (st, id) = parse_while(s, |c| ('a'..='z').contains(&c) || ('A'..='Z').contains(&c) || c == '$'); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:246:19 [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:259:19 [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:272:19 [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Double` is never constructed [INFO] [stdout] --> src/primitive.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Border { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | Double, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Border` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width`, `height`, `write_char`, and `resize` are never used [INFO] [stdout] --> src/primitive.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Screen { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn width(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn height(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn write_char(&mut self, ch: char, col: u16, row: u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn resize(&mut self, new_w: u16, new_h: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ui.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(Dialog), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Msg` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 42 | Ok(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `hide` and `show` are never used [INFO] [stdout] --> src/ui.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait Widget { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 78 | fn hide(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | fn show(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_submenu` is never used [INFO] [stdout] --> src/listbox.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ListItem { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn new_submenu(s: &str, dlg: Dialog) -> ListItem { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_command` is never used [INFO] [stdout] --> src/edit.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Edit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn with_command(self, command: Dialog) -> Edit { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `process_key` is never used [INFO] [stdout] --> src/calc.rs:293:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Calc { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 293 | fn process_key(&mut self, c: char) -> Transition { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align` is never read [INFO] [stdout] --> src/sheet.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Attr { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub align: Align, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_default` is never used [INFO] [stdout] --> src/sheet.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl OptionAttr { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 63 | fn is_default(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sheet.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | Cell(usize), // count [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MoveBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 76 | Cell(()), // count [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Page`, `Edge`, and `End` are never constructed [INFO] [stdout] --> src/sheet.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 75 | enum MoveBy { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 76 | Cell(usize), // count [INFO] [stdout] 77 | Page(usize), // count [INFO] [stdout] | ^^^^ [INFO] [stdout] 78 | Edge, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_default` is never used [INFO] [stdout] --> src/sheet.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 226 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | fn is_default(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_cell_attr` is never used [INFO] [stdout] --> src/sheet.rs:529:12 [INFO] [stdout] | [INFO] [stdout] 307 | impl Sheet { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 529 | pub fn set_cell_attr(&mut self, col: usize, row: usize, attr: OptionAttr) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Row` and `Col` are never constructed [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum Range { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | Row(usize), // entire row [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | Col(usize), // entire col [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Range` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_int` is never used [INFO] [stdout] --> src/parse.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn parse_int(s: &str) -> Result<(&str, i64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_to_bool` is never used [INFO] [stdout] --> src/expr.rs:308:4 [INFO] [stdout] | [INFO] [stdout] 308 | fn try_to_bool(a: Arg) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 64 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.94s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking tspss v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Page_ID` should have an upper camel case name [INFO] [stdout] --> src/ui.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Page_ID(usize), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `PageId` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pos` in this scope [INFO] [stdout] --> src/stack.rs:213:41 [INFO] [stdout] | [INFO] [stdout] 213 | Arg::Rng(None, vec![Pos{col:0, row: 4, fixed_row: false, fixed_col: false, full_col: false, full_row: false}]), [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 191 + use crate::ops::Pos; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Page_ID` should have an upper camel case name [INFO] [stdout] --> src/ui.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Page_ID(usize), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `PageId` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `unicode_width::UnicodeWidthChar` [INFO] [stdout] --> src/edit.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use unicode_width::UnicodeWidthChar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/main.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | use ui::{WidgetStack,Context,Widget,Transition,Msg,Command}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/sheet.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ui::{Widget,Transition}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/ui.rs:321:14 [INFO] [stdout] | [INFO] [stdout] 321 | for (idx, w) in self.widgets.iter_mut().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color, border: Border) -> Panel { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, fg: Color, bg: Color, text: &str) -> Label { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/label.rs:34:66 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color) -> ListBox { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:108:33 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:108:48 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:157:31 [INFO] [stdout] | [INFO] [stdout] 157 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/listbox.rs:176:30 [INFO] [stdout] | [INFO] [stdout] 176 | fn on_command(&mut self, cmd: Msg) -> Result { Ok(Transition::EventPass) } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, fg: Color, bg: Color, text: &str) -> Edit { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:92:33 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:92:48 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:200:31 [INFO] [stdout] | [INFO] [stdout] 200 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | fn draw_header(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | fn draw_cells(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/calc.rs:293:31 [INFO] [stdout] | [INFO] [stdout] 293 | fn process_key(&mut self, c: char) -> Transition { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifiers` [INFO] [stdout] --> src/calc.rs:321:51 [INFO] [stdout] | [INFO] [stdout] 321 | fn process_enter(&mut self, scr: &mut Screen, modifiers: KeyModifiers) -> Transition { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifiers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:379:39 [INFO] [stdout] | [INFO] [stdout] 379 | fn process_event_inner(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `unicode_width::UnicodeWidthChar` [INFO] [stdout] --> src/edit.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use unicode_width::UnicodeWidthChar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/main.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | use ui::{WidgetStack,Context,Widget,Transition,Msg,Command}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/sheet.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ui::{Widget,Transition}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:581:22 [INFO] [stdout] | [INFO] [stdout] 581 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:593:22 [INFO] [stdout] | [INFO] [stdout] 593 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:637:22 [INFO] [stdout] | [INFO] [stdout] 637 | let (args, what) = self.parse_cmd_one_of(args, |s| s=="row" || s=="col" || s=="column"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:694:21 [INFO] [stdout] | [INFO] [stdout] 694 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:725:21 [INFO] [stdout] | [INFO] [stdout] 725 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/calc.rs:842:31 [INFO] [stdout] | [INFO] [stdout] 842 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `do_calc` is never read [INFO] [stdout] --> src/sheet.rs:506:17 [INFO] [stdout] | [INFO] [stdout] 506 | let mut do_calc = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/ui.rs:321:14 [INFO] [stdout] | [INFO] [stdout] 321 | for (idx, w) in self.widgets.iter_mut().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color, border: Border) -> Panel { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/panel.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/panel.rs:51:31 [INFO] [stdout] | [INFO] [stdout] 51 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, fg: Color, bg: Color, text: &str) -> Label { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/label.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/label.rs:34:66 [INFO] [stdout] | [INFO] [stdout] 34 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/label.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, h: u16, fg: Color, bg: Color) -> ListBox { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/listbox.rs:108:33 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:108:48 [INFO] [stdout] | [INFO] [stdout] 108 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/listbox.rs:157:31 [INFO] [stdout] | [INFO] [stdout] 157 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/listbox.rs:176:30 [INFO] [stdout] | [INFO] [stdout] 176 | fn on_command(&mut self, cmd: Msg) -> Result { Ok(Transition::EventPass) } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(ctx: &Context, name: &str, col: u16, row: u16, w: u16, fg: Color, bg: Color, text: &str) -> Edit { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | fn draw(&self, ctx: &Context, scr: &mut Screen/* , theme: &dyn Theme */) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/edit.rs:92:33 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:92:48 [INFO] [stdout] | [INFO] [stdout] 92 | fn process_event(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/edit.rs:200:31 [INFO] [stdout] | [INFO] [stdout] 200 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/sheet.rs:1136:21 [INFO] [stdout] | [INFO] [stdout] 1136 | Err(e) => return expr.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | fn draw_header(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | fn draw_cells(&self, ctx: &Context, scr: &mut Screen) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/calc.rs:293:31 [INFO] [stdout] | [INFO] [stdout] 293 | fn process_key(&mut self, c: char) -> Transition { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `modifiers` [INFO] [stdout] --> src/calc.rs:321:51 [INFO] [stdout] | [INFO] [stdout] 321 | fn process_enter(&mut self, scr: &mut Screen, modifiers: KeyModifiers) -> Transition { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_modifiers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/calc.rs:379:39 [INFO] [stdout] | [INFO] [stdout] 379 | fn process_event_inner(&mut self, ctx: &Context, scr: &mut Screen, event: Event) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/parse.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | let c2 = Pos::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:581:22 [INFO] [stdout] | [INFO] [stdout] 581 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:593:22 [INFO] [stdout] | [INFO] [stdout] 593 | let (args, path) = self.parse_cmd_any_str(args); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/calc.rs:637:22 [INFO] [stdout] | [INFO] [stdout] 637 | let (args, what) = self.parse_cmd_one_of(args, |s| s=="row" || s=="col" || s=="column"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:694:21 [INFO] [stdout] | [INFO] [stdout] 694 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after` [INFO] [stdout] --> src/calc.rs:725:21 [INFO] [stdout] | [INFO] [stdout] 725 | let after = false; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stl` [INFO] [stdout] --> src/parse.rs:412:10 [INFO] [stdout] | [INFO] [stdout] 412 | let (stl, ok) = parse_literal(st, "("); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_stl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:428:10 [INFO] [stdout] | [INFO] [stdout] 428 | let (st, ok) = parse_literal(s, "\""); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:440:10 [INFO] [stdout] | [INFO] [stdout] 440 | let (st, id) = parse_while(s, |c| ('a'..='z').contains(&c) || ('A'..='Z').contains(&c) || c == '$'); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scr` [INFO] [stdout] --> src/calc.rs:842:31 [INFO] [stdout] | [INFO] [stdout] 842 | fn on_activate(&mut self, scr: &mut Screen) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_scr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `do_calc` is never read [INFO] [stdout] --> src/sheet.rs:506:17 [INFO] [stdout] | [INFO] [stdout] 506 | let mut do_calc = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:246:19 [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:259:19 [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:272:19 [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/sheet.rs:1136:21 [INFO] [stdout] | [INFO] [stdout] 1136 | Err(e) => return expr.to_string(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Double` is never constructed [INFO] [stdout] --> src/primitive.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Border { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | Double, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Border` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `width`, `height`, `write_char`, and `resize` are never used [INFO] [stdout] --> src/primitive.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Screen { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn width(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn height(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn write_char(&mut self, ch: char, col: u16, row: u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn resize(&mut self, new_w: u16, new_h: u16) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ui.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(Dialog), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Msg` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 42 | Ok(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `hide` and `show` are never used [INFO] [stdout] --> src/ui.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait Widget { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 78 | fn hide(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | fn show(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_submenu` is never used [INFO] [stdout] --> src/listbox.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ListItem { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn new_submenu(s: &str, dlg: Dialog) -> ListItem { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_command` is never used [INFO] [stdout] --> src/edit.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Edit { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn with_command(self, command: Dialog) -> Edit { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `process_key` is never used [INFO] [stdout] --> src/calc.rs:293:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Calc { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 293 | fn process_key(&mut self, c: char) -> Transition { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `align` is never read [INFO] [stdout] --> src/sheet.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Attr { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub align: Align, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_default` is never used [INFO] [stdout] --> src/sheet.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl OptionAttr { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 63 | fn is_default(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/sheet.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | Cell(usize), // count [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MoveBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 76 | Cell(()), // count [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Page`, `Edge`, and `End` are never constructed [INFO] [stdout] --> src/sheet.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 75 | enum MoveBy { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 76 | Cell(usize), // count [INFO] [stdout] 77 | Page(usize), // count [INFO] [stdout] | ^^^^ [INFO] [stdout] 78 | Edge, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveBy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_default` is never used [INFO] [stdout] --> src/sheet.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 226 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | fn is_default(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_cell_attr` is never used [INFO] [stdout] --> src/sheet.rs:529:12 [INFO] [stdout] | [INFO] [stdout] 307 | impl Sheet { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 529 | pub fn set_cell_attr(&mut self, col: usize, row: usize, attr: OptionAttr) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Row` and `Col` are never constructed [INFO] [stdout] --> src/parse.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum Range { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | Row(usize), // entire row [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | Col(usize), // entire col [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Range` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_int` is never used [INFO] [stdout] --> src/parse.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn parse_int(s: &str) -> Result<(&str, i64)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_to_bool` is never used [INFO] [stdout] --> src/expr.rs:308:4 [INFO] [stdout] | [INFO] [stdout] 308 | fn try_to_bool(a: Arg) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/parse.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | let c2 = Pos::default(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stl` [INFO] [stdout] --> src/parse.rs:412:10 [INFO] [stdout] | [INFO] [stdout] 412 | let (stl, ok) = parse_literal(st, "("); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_stl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:428:10 [INFO] [stdout] | [INFO] [stdout] 428 | let (st, ok) = parse_literal(s, "\""); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `st` [INFO] [stdout] --> src/parse.rs:440:10 [INFO] [stdout] | [INFO] [stdout] 440 | let (st, id) = parse_while(s, |c| ('a'..='z').contains(&c) || ('A'..='Z').contains(&c) || c == '$'); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_st` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 64 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:246:19 [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 246 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:259:19 [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 259 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/expr.rs:272:19 [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(s), _) | (_, Arg::Str(s)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 272 | (Arg::Str(_s), _) | (_, Arg::Str(_s)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tspss` (bin "tspss" test) due to 2 previous errors; 48 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "2053ef0824400e26e5f3ffe47a6f82751dcac6612664950033ea3d9b94ac1161", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2053ef0824400e26e5f3ffe47a6f82751dcac6612664950033ea3d9b94ac1161", kill_on_drop: false }` [INFO] [stdout] 2053ef0824400e26e5f3ffe47a6f82751dcac6612664950033ea3d9b94ac1161