Skip to content

Commit

Permalink
fmt because we can't even merge with one wrongly formatted line
Browse files Browse the repository at this point in the history
Signed-off-by: Schmarni <marnistromer@gmail.com>
  • Loading branch information
Schmarni-Dev committed Jul 4, 2024
1 parent 4724af3 commit 5d916b0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
9 changes: 7 additions & 2 deletions examples/android/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ fn main() {

fn debug_hand_render(query: Query<&GlobalTransform, With<HandBone>>, mut gizmos: Gizmos) {
for transform in &query {
gizmos.sphere(transform.translation(), Quat::IDENTITY, 0.01, palettes::css::RED);
gizmos.sphere(
transform.translation(),
Quat::IDENTITY,
0.01,
palettes::css::RED,
);
}
}

Expand All @@ -57,7 +62,7 @@ fn setup(
) {
// plane
commands.spawn(PbrBundle {
mesh: meshes.add(Plane3d::new(Vec3::Y,Vec2::splat(2.5))),
mesh: meshes.add(Plane3d::new(Vec3::Y, Vec2::splat(2.5))),
material: materials.add(StandardMaterial::from(Color::srgb(0.3, 0.5, 0.3))),
..default()
});
Expand Down
4 changes: 3 additions & 1 deletion src/graphics/d3d12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use std::sync::{Arc, Mutex};
// use anyhow::Context;
use bevy::math::uvec2;
use bevy::prelude::*;
use bevy::render::renderer::{RenderAdapter, RenderAdapterInfo, RenderDevice, RenderQueue, WgpuWrapper};
use bevy::render::renderer::{
RenderAdapter, RenderAdapterInfo, RenderDevice, RenderQueue, WgpuWrapper,
};
use bevy::window::RawHandleWrapper;
use eyre::{Context, ContextCompat};
use openxr as xr;
Expand Down
7 changes: 5 additions & 2 deletions src/xr_input/hands/common.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
use bevy::{
color::{palettes, Srgba}, core::Name, prelude::{
color::{palettes, Srgba},
core::Name,
prelude::{
default, Color, Commands, Component, Deref, DerefMut, Entity, Gizmos, Plugin, PostUpdate,
Query, Resource, SpatialBundle, Startup, Transform,
}, transform::components::GlobalTransform
},
transform::components::GlobalTransform,
};

use crate::xr_input::{trackers::OpenXRTracker, Hand};
Expand Down
4 changes: 3 additions & 1 deletion src/xr_input/prototype_locomotion.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::f32::consts::PI;

use bevy::{
color::palettes, prelude::*, time::{Time, Timer, TimerMode}
color::palettes,
prelude::*,
time::{Time, Timer, TimerMode},
};

use crate::{
Expand Down

0 comments on commit 5d916b0

Please sign in to comment.