Skip to content

Commit 04e5d7a

Browse files
committed
Run fmt and clippy
1 parent 1bd3fe1 commit 04e5d7a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

crates/bevy_ui/src/render/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ pub fn extract_text_uinodes(
293293
) {
294294
let scale_factor = windows.scale_factor(WindowId::primary()) as f32;
295295
for (stack_index, entity) in ui_stack.uinodes.iter().enumerate() {
296-
if let Ok((entity, uinode, global_transform, text, visibility, clip)) = uinode_query.get(*entity) {
296+
if let Ok((entity, uinode, global_transform, text, visibility, clip)) =
297+
uinode_query.get(*entity)
298+
{
297299
if !visibility.is_visible() {
298300
continue;
299301
}

crates/bevy_ui/src/stack.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
use bevy_ecs::prelude::*;
44
use bevy_hierarchy::prelude::*;
55

6-
use crate::{ZIndex, Node};
6+
use crate::{Node, ZIndex};
77

88
/// The current UI stack, which contains all UI nodes ordered by their depth.
9-
///
9+
///
1010
/// The first entry is the furthest node from the camera and is the first one to get rendered
1111
/// while the last entry is the first node to receive interactions.
1212
#[derive(Debug, Resource, Default)]
@@ -49,7 +49,7 @@ pub fn ui_stack_system(
4949
*ui_stack = UiStack {
5050
uinodes: Vec::<Entity>::with_capacity(total_entry_count),
5151
};
52-
52+
5353
fill_stack_recursively(&mut ui_stack.uinodes, &mut global_context);
5454
}
5555

crates/bevy_ui/src/ui_node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,12 @@ pub struct CalculatedClip {
413413

414414
/// Indicates that this node has special requirements for the order of depth in which
415415
/// it should appear in the UI instead of relying solely on the hierarchy of the UI.
416-
///
416+
///
417417
/// Omitting this component on a node will yield the same result as using [`ZIndex::Local(0)`].
418418
#[derive(Component, Copy, Clone, Debug, Reflect)]
419419
pub enum ZIndex {
420420
/// Indicates the order in which this node should be rendered relative to its siblings.
421-
///
421+
///
422422
/// For root UI nodes (nodes that have to parent), using this and [`ZIndex::Global`] is equivalent.
423423
Local(i32),
424424
/// Indicates the order in which this node should be rendered relative to all other nodes

0 commit comments

Comments
 (0)