Skip to content

Commit

Permalink
fmt or clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
-karlos- committed Dec 23, 2023
1 parent bbda96e commit 3751072
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
use bevy::{pbr::NotShadowCaster, prelude::*};
use bevy_embedded_assets::EmbeddedAssetPlugin;
use flycam::update_camera_orientations;
#[cfg(all(feature = "xr", not(any(target_os = "macos", target_arch = "wasm32"))))]
use bevy_oxr::xr_input::trackers::OpenXRTrackingRoot;
#[cfg(all(feature = "xr", not(any(target_os = "macos", target_arch = "wasm32"))))]
use xr::pull_to_ground;
use bevy_screen_diagnostics::{
Aggregate, ScreenDiagnostics, ScreenDiagnosticsPlugin, ScreenEntityDiagnosticsPlugin,
ScreenFrameDiagnosticsPlugin,
Expand All @@ -17,11 +14,14 @@ use big_space::{
},
FloatingOriginPlugin, GridCell,
};
use flycam::update_camera_orientations;
use geocoord::GeoCoord;
use geoview::GeoView;
use http_assets::HttpAssetReaderPlugin;
use player::PlanetaryPosition;
use tilemap::TileMap;
#[cfg(all(feature = "xr", not(any(target_os = "macos", target_arch = "wasm32"))))]
use xr::pull_to_ground;

mod flycam;
mod geocoord;
Expand Down Expand Up @@ -181,7 +181,11 @@ mod player;
fn reposition_compass(
mut compass: Query<
GalacticTransform,
(With<Compass>, Without<bevy_flycam::FlyCam>, Without<OpenXRTrackingRoot>),
(
With<Compass>,
Without<bevy_flycam::FlyCam>,
Without<OpenXRTrackingRoot>,
),
>,
mut commands: Commands,
mut meshes: ResMut<Assets<Mesh>>,
Expand Down Expand Up @@ -220,4 +224,3 @@ fn reposition_compass(
));
}
}

1 change: 0 additions & 1 deletion src/xr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ fn update_grabbables(
}
}


pub fn pull_to_ground(
time: Res<Time>,
mut tracking_root_query: Query<GalacticTransform, With<OpenXRTrackingRoot>>,
Expand Down

0 comments on commit 3751072

Please sign in to comment.