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

+38 -25
View File
@@ -8,17 +8,19 @@
// The EGL loader calls are `unsafe fn`s in khronos-egl (test-only usage).
#![allow(unsafe_code, clippy::unwrap_used)]
use std::ffi::c_void;
use std::sync::Arc;
use std::{ffi::c_void, sync::Arc};
use ghostty_renderer::opengl::buffer;
use ghostty_renderer::opengl::gl::{Gl, Primitive};
use ghostty_renderer::opengl::render_pass::{Attachment, AttachmentTarget, Draw, Step};
use ghostty_renderer::opengl::shaders::{
BgImage, BgImageFit, BgImageInfo, BgImagePosition, CellText, Image, Uniforms,
use ghostty_renderer::{
opengl::{
AlphaBlending,
OpenGL,
buffer,
gl::{Gl, Primitive},
render_pass::{Attachment, AttachmentTarget, Draw, Step},
shaders::{BgImage, BgImageFit, BgImageInfo, BgImagePosition, CellText, Image, Uniforms},
},
shadertoy,
};
use ghostty_renderer::opengl::{AlphaBlending, OpenGL};
use ghostty_renderer::shadertoy;
use khronos_egl as egl;
// EGL_PLATFORM_SURFACELESS_MESA, falling back to the default display.
@@ -393,23 +395,34 @@ fn headless_invalid_shader_reports_compile_error() {
// Full renderer: Terminal -> RenderState -> generic renderer -> offscreen target
mod full_renderer {
use super::*;
use std::sync::Mutex;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{
Mutex,
atomic::{AtomicUsize, Ordering},
};
use ghostty_config::config::Config;
use ghostty_config::types_a::Color as ConfigColor;
use ghostty_config::types_b::AlphaBlending as ConfigBlending;
use ghostty_font::face::DesiredSize;
use ghostty_font::shared_grid_set::{DerivedConfig as FontDerivedConfig, SharedGridSet};
use ghostty_renderer::generic::{DerivedConfig, Host, Renderer};
use ghostty_renderer::options::Options;
use ghostty_renderer::size::{CellSize, Padding, ScreenSize, Size};
use ghostty_renderer::state::State;
use ghostty_terminal::page_list::Scrollbar;
use ghostty_terminal::terminal::{Options as TermOptions, Terminal};
use ghostty_config::{
config::Config,
types_a::Color as ConfigColor,
types_b::AlphaBlending as ConfigBlending,
};
use ghostty_font::{
face::DesiredSize,
shared_grid_set::{DerivedConfig as FontDerivedConfig, SharedGridSet},
};
use ghostty_renderer::{
generic::{DerivedConfig, Host, Renderer},
options::Options,
size::{CellSize, Padding, ScreenSize, Size},
state::State,
};
use ghostty_terminal::{
page_list::Scrollbar,
terminal::{Options as TermOptions, Terminal},
};
use ghostty_vt::color::DynamicRgb;
use super::*;
#[derive(Default)]
struct TestHost {
scrollbars: Mutex<Vec<Scrollbar>>,
@@ -781,10 +794,10 @@ mod full_renderer {
#[test]
fn headless_renderer_thread_updates_and_requests_draws() {
use ghostty_renderer::message::Message;
use ghostty_renderer::thread::Thread;
use std::time::{Duration, Instant};
use ghostty_renderer::{message::Message, thread::Thread};
let Some(f) = Fixture::new("thread") else {
return;
};