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
@@ -19,14 +19,22 @@
|
||||
|
||||
#![allow(clippy::collapsible_if, clippy::if_not_else, clippy::float_cmp)]
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
sync::{RwLock, RwLockReadGuard, RwLockWriteGuard},
|
||||
};
|
||||
|
||||
use crate::atlas::{self, Atlas};
|
||||
use crate::codepoint_resolver::{CodepointResolver, RenderGlyphError};
|
||||
use crate::collection::{self, Collection, GetFaceError, Index, PresentationMode};
|
||||
use crate::face::{Constraint, ConstraintSize, RenderOptions};
|
||||
use crate::{Glyph, Metrics, Presentation, SpriteFace, Style};
|
||||
use crate::{
|
||||
Glyph,
|
||||
Metrics,
|
||||
Presentation,
|
||||
SpriteFace,
|
||||
Style,
|
||||
atlas::{self, Atlas},
|
||||
codepoint_resolver::{CodepointResolver, RenderGlyphError},
|
||||
collection::{self, Collection, GetFaceError, Index, PresentationMode},
|
||||
face::{Constraint, ConstraintSize, RenderOptions},
|
||||
};
|
||||
|
||||
/// The size of a grid cell in pixels.
|
||||
// TODO(integration): replace with `renderer::CellSize` once the renderer
|
||||
@@ -386,9 +394,13 @@ impl State {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::collection::{AddOptions, LoadOptions, SizeAdjustment};
|
||||
use crate::face::{DesiredSize, Options};
|
||||
use crate::{Face, Library, embedded};
|
||||
use crate::{
|
||||
Face,
|
||||
Library,
|
||||
collection::{AddOptions, LoadOptions, SizeAdjustment},
|
||||
embedded,
|
||||
face::{DesiredSize, Options},
|
||||
};
|
||||
|
||||
fn test_grid(lib: &Library) -> SharedGrid {
|
||||
let mut c = Collection::new();
|
||||
|
||||
Reference in new issue
Block a user