[INFO] cloning repository https://github.com/claudehenchoz/nowwrite [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/claudehenchoz/nowwrite" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaudehenchoz%2Fnowwrite", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaudehenchoz%2Fnowwrite'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a54cdd63f6bd436cc4e63f1ef52f0d593348ca9 [INFO] checking claudehenchoz/nowwrite against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaudehenchoz%2Fnowwrite" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/claudehenchoz/nowwrite [INFO] finished tweaking git repo https://github.com/claudehenchoz/nowwrite [INFO] tweaked toml for git repo https://github.com/claudehenchoz/nowwrite written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/claudehenchoz/nowwrite on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/claudehenchoz/nowwrite 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uguid v2.2.1 [INFO] [stderr] Downloaded uefi-services v0.20.0 [INFO] [stderr] Downloaded uefi-raw v0.2.0 [INFO] [stderr] Downloaded uefi v0.23.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d86736a53725b2390c836fc36613ffa96e4aecd7123a68dd17ad4fd1a50ea267 [INFO] running `Command { std: "docker" "start" "-a" "d86736a53725b2390c836fc36613ffa96e4aecd7123a68dd17ad4fd1a50ea267", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d86736a53725b2390c836fc36613ffa96e4aecd7123a68dd17ad4fd1a50ea267", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d86736a53725b2390c836fc36613ffa96e4aecd7123a68dd17ad4fd1a50ea267", kill_on_drop: false }` [INFO] [stdout] d86736a53725b2390c836fc36613ffa96e4aecd7123a68dd17ad4fd1a50ea267 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4867f61527507ba3419717f41fa41571d10c9eec9a0be321bac26f59f04e91f8 [INFO] running `Command { std: "docker" "start" "-a" "4867f61527507ba3419717f41fa41571d10c9eec9a0be321bac26f59f04e91f8", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Compiling nowwrite v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking terminal_size v0.4.2 [INFO] [stdout] warning: variant `Replace` is never constructed [INFO] [stdout] --> src/editor/buffer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Operation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | Replace { position: Cursor, old: String, new: String }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_cursor_with_selection` is never used [INFO] [stdout] --> src/editor/buffer.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl TextBuffer { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn move_cursor_with_selection(&mut self, new_cursor: Cursor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_empty` are never used [INFO] [stdout] --> src/editor/cursor.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Selection { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(start: Cursor, end: Cursor) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_heading` and `get_heading_level` are never used [INFO] [stdout] --> src/editor/markdown.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl MarkdownParser { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn is_heading(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn get_heading_level(line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatusBar` is never constructed [INFO] [stdout] --> src/ui/status_bar.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct StatusBar; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `render`, `count_words`, and `render_help` are never used [INFO] [stdout] --> src/ui/status_bar.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl StatusBar { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 8 | pub fn render( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn count_words(buffer: &TextBuffer) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn render_help( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_directory` is never read [INFO] [stdout] --> src/file/manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct FileManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | platform: P, [INFO] [stdout] 8 | current_directory: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `list_markdown_files`, `change_directory`, `current_directory`, `delete_file`, and `get_file_size` are never used [INFO] [stdout] --> src/file/manager.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl FileManager

{ [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn list_markdown_files(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn change_directory(&mut self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn current_directory(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn delete_file(&mut self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn get_file_size(&self, path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/file/backup.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BackupManager

{ [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn with_interval(mut self, interval_seconds: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn list_backups(&self, file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn restore_backup(&mut self, backup_path: &str, target_path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn cleanup_old_backups(&mut self, file_path: &str, keep_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn get_backup_size(&self, file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | fn extract_timestamp(&self, backup_filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn is_valid_timestamp(&self, timestamp: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_platform_mut(&mut self) -> &mut P { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BackupInfo` is never constructed [INFO] [stdout] --> src/file/backup.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct BackupInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `format_timestamp` and `format_size` are never used [INFO] [stdout] --> src/file/backup.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 189 | impl BackupInfo { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 190 | pub fn format_timestamp(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn format_size(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Delete`, `Home`, `End`, `PageUp`, `PageDown`, and `CtrlI` are never constructed [INFO] [stdout] --> src/platform/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum KeyEvent { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Delete, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Home, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | PageUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | PageDown, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | CtrlI, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyEvent` 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: fields `bright` and `background` are never read [INFO] [stdout] --> src/platform/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct TextAttribute { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 36 | pub bright: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub background: Color, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextAttribute` 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: field `size` is never read [INFO] [stdout] --> src/platform/mod.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct FileInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 50 | pub size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileInfo` 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: enum `PowerMode` is never used [INFO] [stdout] --> src/platform/mod.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum PowerMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatteryStatus` is never constructed [INFO] [stdout] --> src/platform/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct BatteryStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_battery_status` and `set_power_mode` are never used [INFO] [stdout] --> src/platform/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub trait Platform { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 76 | fn get_battery_status(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | fn set_power_mode(&mut self, mode: PowerMode) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Terminal` is never constructed [INFO] [stdout] --> src/platform/linux/terminal.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Terminal {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/platform/linux/terminal.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Terminal { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn enter_raw_mode(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn exit_raw_mode(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn enter_alternate_screen(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn exit_alternate_screen(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_size(&self) -> Result<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_cursor_position(&self, x: usize, y: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn hide_cursor(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn show_cursor(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn clear_screen(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinuxFileSystem` is never constructed [INFO] [stdout] --> src/platform/linux/filesystem.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LinuxFileSystem; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/platform/linux/filesystem.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl LinuxFileSystem { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 9 | pub fn list_files(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn read_file(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn write_file(path: &str, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn create_directory(path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn delete_file(path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn file_exists(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get_file_size(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn copy_file(src: &str, dst: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn move_file(src: &str, dst: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn get_current_dir() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn change_dir(path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn is_absolute_path(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn join_path(base: &str, relative: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn get_parent_dir(path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn get_filename(path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_file_extension(path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/config/keyboard.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct KeyboardLayout { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 8 | pub code: String, [INFO] [stdout] 9 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyboardLayout` 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: methods `map_input`, `get_available_layouts`, `get_layout_display_info`, `reset_to_default`, `is_special_char`, and `get_mapping_info` are never used [INFO] [stdout] --> src/config/keyboard.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl KeyboardConfig

{ [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn map_input(&self, ch: char) -> char { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn get_available_layouts(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn get_layout_display_info(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn reset_to_default(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn is_special_char(&self, ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn get_mapping_info(&self) -> Vec<(char, char)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Replace` is never constructed [INFO] [stdout] --> src/editor/buffer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Operation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | Replace { position: Cursor, old: String, new: String }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_cursor_with_selection` is never used [INFO] [stdout] --> src/editor/buffer.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl TextBuffer { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn move_cursor_with_selection(&mut self, new_cursor: Cursor) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_empty` are never used [INFO] [stdout] --> src/editor/cursor.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Selection { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(start: Cursor, end: Cursor) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_heading` and `get_heading_level` are never used [INFO] [stdout] --> src/editor/markdown.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl MarkdownParser { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn is_heading(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn get_heading_level(line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatusBar` is never constructed [INFO] [stdout] --> src/ui/status_bar.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct StatusBar; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `render`, `count_words`, and `render_help` are never used [INFO] [stdout] --> src/ui/status_bar.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl StatusBar { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 8 | pub fn render( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn count_words(buffer: &TextBuffer) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn render_help( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_directory` is never read [INFO] [stdout] --> src/file/manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct FileManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | platform: P, [INFO] [stdout] 8 | current_directory: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `list_markdown_files`, `change_directory`, `current_directory`, `delete_file`, and `get_file_size` are never used [INFO] [stdout] --> src/file/manager.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl FileManager

{ [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn list_markdown_files(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn change_directory(&mut self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn current_directory(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn delete_file(&mut self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn get_file_size(&self, path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/file/backup.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BackupManager

{ [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn with_interval(mut self, interval_seconds: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn list_backups(&self, file_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn restore_backup(&mut self, backup_path: &str, target_path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn cleanup_old_backups(&mut self, file_path: &str, keep_count: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn get_backup_size(&self, file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | fn extract_timestamp(&self, backup_filename: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn is_valid_timestamp(&self, timestamp: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_platform_mut(&mut self) -> &mut P { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BackupInfo` is never constructed [INFO] [stdout] --> src/file/backup.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct BackupInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `format_timestamp` and `format_size` are never used [INFO] [stdout] --> src/file/backup.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 189 | impl BackupInfo { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 190 | pub fn format_timestamp(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn format_size(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Delete`, `Home`, `End`, `PageUp`, `PageDown`, and `CtrlI` are never constructed [INFO] [stdout] --> src/platform/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum KeyEvent { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Delete, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Home, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] 22 | PageUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | PageDown, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | CtrlI, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyEvent` 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: fields `bright` and `background` are never read [INFO] [stdout] --> src/platform/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct TextAttribute { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 36 | pub bright: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub background: Color, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextAttribute` 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: field `size` is never read [INFO] [stdout] --> src/platform/mod.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct FileInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 50 | pub size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileInfo` 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: enum `PowerMode` is never used [INFO] [stdout] --> src/platform/mod.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum PowerMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatteryStatus` is never constructed [INFO] [stdout] --> src/platform/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct BatteryStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_battery_status` and `set_power_mode` are never used [INFO] [stdout] --> src/platform/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub trait Platform { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 76 | fn get_battery_status(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | fn set_power_mode(&mut self, mode: PowerMode) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Terminal` is never constructed [INFO] [stdout] --> src/platform/linux/terminal.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Terminal {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/platform/linux/terminal.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Terminal { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn enter_raw_mode(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn exit_raw_mode(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn enter_alternate_screen(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn exit_alternate_screen(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_size(&self) -> Result<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn set_cursor_position(&self, x: usize, y: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn hide_cursor(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn show_cursor(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn clear_screen(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinuxFileSystem` is never constructed [INFO] [stdout] --> src/platform/linux/filesystem.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LinuxFileSystem; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/platform/linux/filesystem.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl LinuxFileSystem { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 9 | pub fn list_files(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn read_file(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn write_file(path: &str, content: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn create_directory(path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn delete_file(path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn file_exists(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get_file_size(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn copy_file(src: &str, dst: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn move_file(src: &str, dst: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn get_current_dir() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn change_dir(path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn is_absolute_path(path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn join_path(base: &str, relative: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn get_parent_dir(path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn get_filename(path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_file_extension(path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/config/keyboard.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct KeyboardLayout { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 8 | pub code: String, [INFO] [stdout] 9 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyboardLayout` 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: methods `map_input`, `get_available_layouts`, `get_layout_display_info`, `reset_to_default`, `is_special_char`, and `get_mapping_info` are never used [INFO] [stdout] --> src/config/keyboard.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl KeyboardConfig

{ [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn map_input(&self, ch: char) -> char { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn get_available_layouts(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn get_layout_display_info(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn reset_to_default(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn is_special_char(&self, ch: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn get_mapping_info(&self) -> Vec<(char, char)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.84s [INFO] running `Command { std: "docker" "inspect" "4867f61527507ba3419717f41fa41571d10c9eec9a0be321bac26f59f04e91f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4867f61527507ba3419717f41fa41571d10c9eec9a0be321bac26f59f04e91f8", kill_on_drop: false }` [INFO] [stdout] 4867f61527507ba3419717f41fa41571d10c9eec9a0be321bac26f59f04e91f8