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:
1 parent
81d4119d85
commit
8bcb85a29a
259 files changed
+2495
-1547
No files matched your search
@@ -3,14 +3,20 @@
|
||||
//! [`LoadingImage`] is an image that is still being transmitted (possibly in
|
||||
//! chunks). [`Image`] is a fully loaded and validated image.
|
||||
|
||||
use std::io::{Cursor, Read, Seek, SeekFrom};
|
||||
use std::os::unix::ffi::OsStrExt;
|
||||
use std::os::unix::fs::FileExt;
|
||||
use std::path::Path;
|
||||
use std::time::Instant;
|
||||
use std::{
|
||||
io::{Cursor, Read, Seek, SeekFrom},
|
||||
os::unix::{ffi::OsStrExt, fs::FileExt},
|
||||
path::Path,
|
||||
time::Instant,
|
||||
};
|
||||
|
||||
use ghostty_vt::kitty::graphics_command::{
|
||||
Command, Display, Quiet, TransmissionCompression, TransmissionFormat, TransmissionMedium,
|
||||
Command,
|
||||
Display,
|
||||
Quiet,
|
||||
TransmissionCompression,
|
||||
TransmissionFormat,
|
||||
TransmissionMedium,
|
||||
};
|
||||
|
||||
use crate::page_list::Pin;
|
||||
@@ -138,8 +144,7 @@ impl LoadingImage {
|
||||
|
||||
/// Reads the data from a shared memory segment.
|
||||
fn read_shared_memory(&mut self, offset: u32, size: u32, path: &[u8]) -> Result<(), Error> {
|
||||
use rustix::fs::Mode;
|
||||
use rustix::shm;
|
||||
use rustix::{fs::Mode, shm};
|
||||
|
||||
let path_str = String::from_utf8_lossy(path);
|
||||
let fd = match shm::open(path, shm::OFlags::RDONLY, Mode::empty()) {
|
||||
@@ -565,9 +570,10 @@ pub struct Rect {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use ghostty_vt::kitty::graphics_command::{Control, Transmission};
|
||||
|
||||
use super::*;
|
||||
|
||||
const RGB_NONE_20X15: &[u8] =
|
||||
include_bytes!("testdata/image-rgb-none-20x15-2147483647-raw.data");
|
||||
const RGB_ZLIB_128X96: &[u8] =
|
||||
@@ -894,10 +900,10 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn image_load_shared_memory() {
|
||||
use rustix::fs::Mode;
|
||||
use rustix::shm;
|
||||
use std::io::Write;
|
||||
|
||||
use rustix::{fs::Mode, shm};
|
||||
|
||||
let name = format!("/ghostty-kitty-test-{}", std::process::id());
|
||||
let fd = shm::open(
|
||||
name.as_str(),
|
||||
|
||||
Reference in new issue
Block a user