Skip to content

Commit

Permalink
Apply rustfmt in bevy_ui/layout
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeForceZero committed Mar 29, 2024
1 parent 0ab5686 commit fd718d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions crates/bevy_ui/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -337,28 +337,28 @@ 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;
use bevy_window::WindowResized;
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() {
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/layout/ui_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fd718d3

Please sign in to comment.