mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 08:02:24 +00:00
Each of these sits on an item the code does use: ssh_config's import_profiles, merge_imported and jump_alias, SshConnection's key field and key(), NativeSshSpec::without_secrets, CmdEditor::cursor, and Pane::ssh_connection. Verified by removing every dead_code allow in the workspace and reading back what the compiler then reported -- none of these appeared, in either a production-only or an all-targets build. A stale allow is worse than no allow. It reads as "this is dead, on purpose", so the next person leaves it alone, and it goes on covering the item after the code around it changes -- at which point the item really can die without anyone hearing about it. cursor_byte is the one that is genuinely unused outside tests, so it moves to the house idiom #[cfg_attr(not(test), allow(dead_code))], which still reports it if the tests stop using it too.