chore: clippy fix

This commit is contained in:
Sébastien Crozet
2024-03-23 10:25:56 +01:00
committed by Sébastien Crozet
parent 6b6c349cfa
commit f9663f894c
2 changed files with 25 additions and 25 deletions

View File

@@ -7,7 +7,7 @@ use std::num::NonZeroUsize;
use bevy::prelude::*;
use crate::debug_render::{DebugRenderPipelineResource, RapierDebugRenderPlugin};
use crate::physics::{PhysicsEvents, PhysicsSnapshot, PhysicsState};
use crate::physics::{DeserializedPhysicsSnapshot, PhysicsEvents, PhysicsSnapshot, PhysicsState};
use crate::plugin::TestbedPlugin;
use crate::ui;
use crate::{graphics::GraphicsManager, harness::RunState};
@@ -1271,7 +1271,7 @@ fn update_testbed(
.action_flags
.set(TestbedActionFlags::RESTORE_SNAPSHOT, false);
if let Some(snapshot) = &state.snapshot {
if let Ok((
if let Ok(DeserializedPhysicsSnapshot {
timestep_id,
broad_phase,
narrow_phase,
@@ -1280,7 +1280,7 @@ fn update_testbed(
colliders,
impulse_joints,
multibody_joints,
)) = snapshot.restore()
}) = snapshot.restore()
{
clear(&mut commands, &mut state, &mut graphics, &mut plugins);