cargo fmt and removed the unessecary examples.

This commit is contained in:
MalekiRe
2024-05-29 16:30:15 -07:00
committed by Malek
parent 1d27157142
commit ec16d9a254
13 changed files with 59 additions and 72 deletions

View File

@@ -89,7 +89,9 @@ pub fn handle_session(
}
/// A [`Condition`](bevy::ecs::schedule::Condition) that allows the system to run when the xr status changed to a specific [`XrStatus`].
pub fn status_changed_to(status: XrStatus) -> impl FnMut(EventReader<XrStatusChanged>) -> bool + Clone {
pub fn status_changed_to(
status: XrStatus,
) -> impl FnMut(EventReader<XrStatusChanged>) -> bool + Clone {
move |mut reader: EventReader<XrStatusChanged>| {
reader.read().any(|new_status| new_status.0 == status)
}