From fd718d3bb9029e9d0eba5afb3ae7a6d58db3f705 Mon Sep 17 00:00:00 2001 From: bstriker Date: Fri, 29 Mar 2024 13:25:40 -0400 Subject: [PATCH] Apply rustfmt in bevy_ui/layout --- crates/bevy_ui/src/layout/mod.rs | 10 +++++----- crates/bevy_ui/src/layout/ui_surface.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/bevy_ui/src/layout/mod.rs b/crates/bevy_ui/src/layout/mod.rs index 3b0532d806be99..62d60f50cbb18b 100644 --- a/crates/bevy_ui/src/layout/mod.rs +++ b/crates/bevy_ui/src/layout/mod.rs @@ -13,8 +13,8 @@ use bevy_hierarchy::{Children, Parent}; use bevy_math::{UVec2, Vec2}; use bevy_render::camera::{Camera, NormalizedRenderTarget}; use bevy_transform::components::Transform; -use bevy_utils::{HashMap, HashSet}; use bevy_utils::tracing::warn; +use bevy_utils::{HashMap, HashSet}; use bevy_window::{PrimaryWindow, Window, WindowScaleFactorChanged}; use ui_surface::UiSurface; @@ -337,15 +337,15 @@ mod tests { use bevy_ecs::schedule::Schedule; use bevy_ecs::system::RunSystemOnce; use bevy_ecs::world::World; - use bevy_hierarchy::{BuildWorldChildren, Children, despawn_with_children_recursive, Parent}; - use bevy_math::{Rect, UVec2, vec2, Vec2}; + use bevy_hierarchy::{despawn_with_children_recursive, BuildWorldChildren, Children, Parent}; + use bevy_math::{vec2, Rect, UVec2, Vec2}; use bevy_render::camera::ManualTextureViews; use bevy_render::camera::OrthographicProjection; use bevy_render::prelude::Camera; use bevy_render::texture::Image; use bevy_transform::prelude::{GlobalTransform, Transform}; - use bevy_utils::HashMap; use bevy_utils::prelude::default; + use bevy_utils::HashMap; use bevy_window::PrimaryWindow; use bevy_window::Window; use bevy_window::WindowCreated; @@ -353,12 +353,12 @@ mod tests { use bevy_window::WindowResolution; use bevy_window::WindowScaleFactorChanged; - use crate::ContentSize; use crate::layout::round_layout_coords; use crate::layout::ui_surface::UiSurface; use crate::prelude::*; use crate::ui_layout_system; use crate::update::update_target_camera_system; + use crate::ContentSize; #[test] fn round_layout_coords_must_round_ties_up() { diff --git a/crates/bevy_ui/src/layout/ui_surface.rs b/crates/bevy_ui/src/layout/ui_surface.rs index 345c9ab730e724..128f3a7f6e5f4f 100644 --- a/crates/bevy_ui/src/layout/ui_surface.rs +++ b/crates/bevy_ui/src/layout/ui_surface.rs @@ -10,8 +10,8 @@ use bevy_math::UVec2; use bevy_utils::default; use bevy_utils::tracing::warn; -use crate::{LayoutContext, LayoutError, Style}; use crate::layout::convert; +use crate::{LayoutContext, LayoutError, Style}; #[derive(Debug, Clone, PartialEq, Eq)] pub struct RootNodePair {