tlc: clean up unused imports from module split + resize fix

- dispatch.rs: remove 8 unused module imports, 4 unused dialog type imports
- mod.rs: remove unused LinkKind import
- app.rs: remove unused AsFd import and stdin_fd variable
- Clippy back to 2 pre-existing warnings only (mc_ext + compare)
This commit is contained in:
2026-06-19 18:06:31 +03:00
parent ac12f9e398
commit 612732dc39
3 changed files with 5 additions and 11 deletions
-2
View File
@@ -10,7 +10,6 @@
use std::path::PathBuf;
use std::io::Write;
use std::os::fd::AsFd;
use std::time::Duration;
use anyhow::Result;
@@ -60,7 +59,6 @@ impl Application {
// Stdin fd for poll — obtained without locking so the subshell
// can still read from stdin when we drop into CTRL+O.
let stdin = std::io::stdin();
let stdin_fd = stdin.as_fd();
let poll_timeout =
Timespec::try_from(Duration::from_millis(200)).unwrap_or_default();
@@ -10,21 +10,17 @@
use anyhow::Result;
use crate::filemanager::{
compare, config_dialog, edit_history, exec, external_panelize, filter_dialog, filtered_view,
find, format_utils, help, hotlist, jobs, layout_dialog, link, menubar, move_dialog,
overwrite_dialog, panel_options, percent, quickcd_dialog, render, screen_list, skin_dialog,
tree, usermenu, vfs_list, Cmd, DialogState, FileManager, PendingFileOp,
compare, config_dialog, edit_history, external_panelize, filtered_view,
find, format_utils, hotlist, jobs, layout_dialog, link, menubar,
panel_options, quickcd_dialog, screen_list, skin_dialog,
tree, usermenu, vfs_list, Cmd, DialogState, FileManager,
};
use crate::filemanager::link::LinkKind;
use crate::key::Key;
use super::copy_dialog::CopyDialog;
use super::delete_dialog::DeleteDialog;
use super::info::InfoDialog;
use super::layout_dialog::LayoutDialog;
use super::panel::ListingMode;
use super::panel_options::PanelOptionsDialog;
use super::permission::PermissionDialog;
use super::config_dialog::ConfigDialog;
impl FileManager {
@@ -71,7 +71,7 @@ use self::delete_dialog::DeleteDialog;
use self::exec::ExecDialog;
use self::info::InfoDialog;
use self::layout_dialog::LayoutDialog;
use self::link::{LinkDialog, LinkKind};
use self::link::LinkDialog;
use self::mkdir_dialog::MkDirDialog;
use self::move_dialog::MoveDialog;
use self::owner::OwnerDialog;