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 81d4119d85
commit 8bcb85a29a
259 files changed
+2495 -1547

No files matched your search

+4 -2
View File
@@ -3,8 +3,10 @@
#![allow(clippy::needless_raw_string_hashes)]
use std::fmt;
use std::hash::{Hash, Hasher};
use std::{
fmt,
hash::{Hash, Hasher},
};
use super::Error;
+27 -8
View File
@@ -4,19 +4,38 @@
pub mod action;
pub mod set;
use std::collections::hash_map::DefaultHasher;
use std::fmt;
use std::hash::{Hash, Hasher};
use std::{
collections::hash_map::DefaultHasher,
fmt,
hash::{Hash, Hasher},
};
pub use action::{
Action, ActionKey, AdjustSelection, CloseTabMode, CopyToClipboard, CrashThread, CursorKey,
GotoWindow, InspectorMode, NavigateSearch, Scope, SplitDirection, SplitFocusDirection,
SplitResizeDirection, SplitResizeParameter, WriteScreen, WriteScreenAction, WriteScreenFormat,
Action,
ActionKey,
AdjustSelection,
CloseTabMode,
CopyToClipboard,
CrashThread,
CursorKey,
GotoWindow,
InspectorMode,
NavigateSearch,
Scope,
SplitDirection,
SplitFocusDirection,
SplitResizeDirection,
SplitResizeParameter,
WriteScreen,
WriteScreenAction,
WriteScreenFormat,
};
pub use set::Set;
use crate::key;
use crate::key_mods::{self, Mods};
use crate::{
key,
key_mods::{self, Mods},
};
#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
pub enum Error {
+8 -4
View File
@@ -1,9 +1,13 @@
#![allow(clippy::unwrap_used)]
use super::set::{AppendChainError, EntryFormatter, Value};
use super::*;
use crate::key::{Key, KeyEvent};
use crate::key_mods::Mods;
use super::{
set::{AppendChainError, EntryFormatter, Value},
*,
};
use crate::{
key::{Key, KeyEvent},
key_mods::Mods,
};
fn uni(c: char) -> Trigger {
Trigger {
+11 -2
View File
@@ -3,8 +3,17 @@
use std::sync::OnceLock;
use crate::binding::{
Action, CloseTabMode, CopyToClipboard, GotoWindow, InspectorMode, NavigateSearch,
SplitDirection, SplitFocusDirection, WriteScreen, WriteScreenAction, WriteScreenFormat,
Action,
CloseTabMode,
CopyToClipboard,
GotoWindow,
InspectorMode,
NavigateSearch,
SplitDirection,
SplitFocusDirection,
WriteScreen,
WriteScreenAction,
WriteScreenFormat,
};
/// A command is a named binding action that can be executed from
+3 -1
View File
@@ -21,6 +21,8 @@ pub use key_mods::{Mods, RemapSet as KeyRemapSet};
pub use keyboard::Layout as KeyboardLayout;
pub use link::Link;
pub use mouse::{
Button as MouseButton, ButtonState as MouseButtonState, PressureStage as MousePressureStage,
Button as MouseButton,
ButtonState as MouseButtonState,
PressureStage as MousePressureStage,
ScrollMods,
};