From 0904924622cf73e4660c1261d01a367981833f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Lescaudey=20de=20Maneville?= Date: Thu, 11 Jul 2024 12:53:01 +0200 Subject: [PATCH] Cleanup --- src/components/cloth.rs | 1 + src/components/mod.rs | 2 +- src/lib.rs | 2 +- src/systems/collisions/avian.rs | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/cloth.rs b/src/components/cloth.rs index 8876fa1..c128222 100644 --- a/src/components/cloth.rs +++ b/src/components/cloth.rs @@ -316,6 +316,7 @@ impl Cloth { } #[cfg(test)] +#[allow(clippy::unwrap_used)] mod tests { use super::*; use crate::mesh::rectangle_mesh; diff --git a/src/components/mod.rs b/src/components/mod.rs index 26af891..e0383d6 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -5,5 +5,5 @@ pub mod cloth_builder; /// cloth rendering module pub mod cloth_rendering; /// collider module -#[cfg(any(feature = "rapier_collisions", feature = "xpbd_collisions"))] +#[cfg(any(feature = "rapier_collisions", feature = "avian_collisions"))] pub mod collider; diff --git a/src/lib.rs b/src/lib.rs index bf607b6..18e7851 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -345,7 +345,7 @@ use bevy::prelude::*; /// Prelude module, providing every public type of the lib pub mod prelude { - #[cfg(any(feature = "rapier_collisions", feature = "xpbd_collisions"))] + #[cfg(any(feature = "rapier_collisions", feature = "avian_collisions"))] pub use crate::components::collider::ClothCollider; pub use crate::{ components::{cloth_builder::ClothBuilder, cloth_rendering::NormalComputing}, diff --git a/src/systems/collisions/avian.rs b/src/systems/collisions/avian.rs index 84367d3..ff146b9 100644 --- a/src/systems/collisions/avian.rs +++ b/src/systems/collisions/avian.rs @@ -32,7 +32,7 @@ pub fn handle_collisions( time: Res