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
3fd4ea6ae9
commit
126da77a37
259 files changed
+2495
-1547
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
Reference in new issue
Block a user