aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src/hit_result.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-15 11:14:40 +0930
committermat <git@matdoes.dev>2025-12-15 11:14:40 +0930
commitdcbd690f21665e22ea250024a1aa85dec34e6c9e (patch)
tree411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-core/src/hit_result.rs
parentb0a2a809331b0f781517649857d31e0aec67d300 (diff)
downloadazalea-drasl-dcbd690f21665e22ea250024a1aa85dec34e6c9e.tar.xz
sort derives with cargo sort-derives
might add to ci later, unsure how to do it without adding significant friction for contributors though
Diffstat (limited to 'azalea-core/src/hit_result.rs')
-rw-r--r--azalea-core/src/hit_result.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-core/src/hit_result.rs b/azalea-core/src/hit_result.rs
index 2f3d2403..2b269aba 100644
--- a/azalea-core/src/hit_result.rs
+++ b/azalea-core/src/hit_result.rs
@@ -7,7 +7,7 @@ use crate::{
///
/// If there's nothing, it'll be a [`BlockHitResult`] with `miss` set to true.
#[cfg(feature = "bevy_ecs")]
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Clone, Debug, PartialEq)]
pub enum HitResult {
Block(BlockHitResult),
Entity(EntityHitResult),
@@ -65,7 +65,7 @@ impl HitResult {
}
}
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Clone, Debug, PartialEq)]
pub struct BlockHitResult {
pub location: Vec3,
pub miss: bool,
@@ -103,7 +103,7 @@ impl From<BlockHitResult> for HitResult {
}
#[cfg(feature = "bevy_ecs")]
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Clone, Debug, PartialEq)]
pub struct EntityHitResult {
pub location: Vec3,
pub entity: bevy_ecs::entity::Entity,