style: apply nightly rustfmt import grouping across the workspace

rustfmt.toml sets group_imports, imports_granularity and imports_layout,
which are nightly-only; agents formatted with stable rustfmt, which
ignored them. This is a formatting-only pass with `cargo +nightly fmt`.

Test Plan:
- cargo clippy --workspace --all-targets -- -D warnings
- cargo test --workspace
This commit is contained in:
ddidderr committed 2026-10-12 05:03:37 +02:00
1 parent 3fd4ea6ae9
commit 126da77a37
259 files changed
+2495 -1547

No files matched your search

+4 -4
View File
@@ -3,8 +3,7 @@
use std::sync::{Mutex, MutexGuard, PoisonError};
use dear_imgui_rs::{ConfigFlags, Context, FontSource, StbTrueTypeFontData, Ui};
use ghostty_renderer::overlay::Feature;
use ghostty_renderer::state::InspectorHook;
use ghostty_renderer::{overlay::Feature, state::InspectorHook};
use ghostty_terminal::terminal::Terminal;
use crate::widgets;
@@ -111,13 +110,14 @@ impl InspectorHook for Shared {
#[cfg(test)]
mod tests {
use super::*;
use crate::widgets::surface::SurfaceInfo;
use ghostty_input::{Action, Key, KeyEvent};
use ghostty_renderer::size::{CellSize, Padding, ScreenSize, Size};
use ghostty_terminal::terminal::Options;
use ghostty_vt::stream::Stream;
use super::*;
use crate::widgets::surface::SurfaceInfo;
fn surface_info() -> SurfaceInfo {
SurfaceInfo {
size: Size {
+1 -2
View File
@@ -3,8 +3,7 @@
use std::collections::VecDeque;
use dear_imgui_rs::{InputTextFlags, TableColumnFlags, TableColumnWidth, TableFlags, Ui};
use ghostty_input::binding::Action as BindingAction;
use ghostty_input::{Action, Key, KeyEvent, Mods};
use ghostty_input::{Action, Key, KeyEvent, Mods, binding::Action as BindingAction};
/// The maximum number of recorded events (Zig: the ring grows by doubling up
/// to this capacity, after which the oldest event is dropped).
+1 -2
View File
@@ -1,8 +1,7 @@
//! Page inspector (ZIG/src/inspector/widgets/page.zig).
use dear_imgui_rs::{ChildFlags, TableColumnFlags, TableColumnWidth, TableFlags, Ui};
use ghostty_terminal::hyperlink::HyperlinkId;
use ghostty_terminal::page::Page;
use ghostty_terminal::{hyperlink::HyperlinkId, page::Page};
use super::{help_marker, style};
use crate::units::to_kibi_bytes;
@@ -1,12 +1,20 @@
//! PageList inspector (ZIG/src/inspector/widgets/pagelist.zig).
use dear_imgui_rs::{
ComboBoxHeight, ComboBoxOptions, ItemHoveredFlags, MouseButton, StyleColor, TableFlags,
TreeNodeFlags, Ui,
ComboBoxHeight,
ComboBoxOptions,
ItemHoveredFlags,
MouseButton,
StyleColor,
TableFlags,
TreeNodeFlags,
Ui,
};
use ghostty_terminal::{
page_list::{PageList, Scroll, Scrollbar},
point::{Coordinate, Point, Tag},
style::DEFAULT_ID,
};
use ghostty_terminal::page_list::{PageList, Scroll, Scrollbar};
use ghostty_terminal::point::{Coordinate, Point, Tag};
use ghostty_terminal::style::DEFAULT_ID;
use super::{help_marker, page, style};
use crate::units::to_kibi_bytes;
@@ -1,10 +1,12 @@
//! Screen information (ZIG/src/inspector/widgets/screen.zig).
use dear_imgui_rs::{DockNodeFlags, TableFlags, TreeNodeFlags, Ui, WindowFlags};
use ghostty_terminal::kitty::graphics_storage::ImageStorage;
use ghostty_terminal::screen::{Cursor, Screen, SemanticClick, SemanticPrompt};
use ghostty_terminal::screen_set::Key as ScreenKey;
use ghostty_terminal::style::Style;
use ghostty_terminal::{
kitty::graphics_storage::ImageStorage,
screen::{Cursor, Screen, SemanticClick, SemanticPrompt},
screen_set::Key as ScreenKey,
style::Style,
};
use ghostty_vt::color::{DynamicPalette, Palette};
use super::{help_marker, pagelist, style as style_widget};
@@ -3,9 +3,11 @@
use dear_imgui_rs::{DockNodeFlags, TableFlags, TreeNodeFlags, Ui, WindowFlags};
use ghostty_renderer::size::{Coordinate, CoordinateTag, Size, SurfaceCoord};
use ghostty_terminal::page_list::Pin;
use ghostty_terminal::point::{Coordinate as PointCoordinate, Tag};
use ghostty_terminal::terminal::Terminal;
use ghostty_terminal::{
page_list::Pin,
point::{Coordinate as PointCoordinate, Tag},
terminal::Terminal,
};
use super::{key, renderer, terminal, termio};
use crate::dock::begin_window;
@@ -1,13 +1,25 @@
//! Terminal information (ZIG/src/inspector/widgets/terminal.zig).
use dear_imgui_rs::{
ColorEditFlags, Condition, ItemHoveredFlags, StyleVar, TableColumnFlags, TableColumnWidth,
TableFlags, TableRowFlags, Ui, WindowFlags,
ColorEditFlags,
Condition,
ItemHoveredFlags,
StyleVar,
TableColumnFlags,
TableColumnWidth,
TableFlags,
TableRowFlags,
Ui,
WindowFlags,
};
use ghostty_terminal::{
screen_set::Key as ScreenKey,
terminal::{MouseShiftCapture, Terminal},
};
use ghostty_vt::{
color::{DynamicRgb, Palette},
modes::ENTRIES as MODE_ENTRIES,
};
use ghostty_terminal::screen_set::Key as ScreenKey;
use ghostty_terminal::terminal::{MouseShiftCapture, Terminal};
use ghostty_vt::color::{DynamicRgb, Palette};
use ghostty_vt::modes::ENTRIES as MODE_ENTRIES;
use super::{DetachableHeader, help_marker, screen, style::rgb_f32};
use crate::keys::tag_name;
+14 -8
View File
@@ -1,18 +1,24 @@
//! VT event stream inspector (ZIG/src/inspector/widgets/termio.zig).
use std::collections::VecDeque;
use std::convert::Infallible;
use std::fmt::Write as _;
use std::{collections::VecDeque, convert::Infallible, fmt::Write as _};
use dear_imgui_rs::{
FocusedFlags, Key, SelectableFlags, TableColumnFlags, TableColumnWidth, TableFlags, Ui,
FocusedFlags,
Key,
SelectableFlags,
TableColumnFlags,
TableColumnWidth,
TableFlags,
Ui,
WindowFlags,
};
use ghostty_terminal::terminal::{ScrollingRegion, Terminal};
use ghostty_vt::color::Palette;
use ghostty_vt::osc::{self, Command as OscCommand};
use ghostty_vt::parser::Action as ParserAction;
use ghostty_vt::stream::{Action as StreamAction, Handler, Stream as VtStream};
use ghostty_vt::{
color::Palette,
osc::{self, Command as OscCommand},
parser::Action as ParserAction,
stream::{Action as StreamAction, Handler, Stream as VtStream},
};
use super::screen::{CursorSnapshot, cursor_style, cursor_table};