4e3b06af83
Systematic clippy sweep across 22 files: - Remove unused imports (Modifier, Block, Borders, Clear, Line) - Remove unnecessary mut/unused variables (cursor.rs, mc_skin.rs) - Fix unnecessary casts in popup.rs and viewer/mod.rs - Use abs_diff instead of manual abs pattern (render.rs) - Collapse nested if in menubar.rs - Merge identical if branches in render.rs - Use strip_prefix instead of manual slice (mod.rs) - Use io::Error::other instead of Error::new (source.rs) - Remove useless format! in known_hosts.rs - Add #[derive(Default)] to SelectionMode enum - Add #[allow] for too_many_arguments on render functions - Add #[allow(dead_code)] for utility functions (centered_rect, rgb) - Remove redundant .clone() on &str in menubar.rs - Remove .max(0) on unsigned subtraction (button.rs) - Add missing doc comments on public methods (editor, panel, ops) cargo clippy --lib: 0 warnings (was 49) cargo test --lib: 1213 passed, 0 failed