Skip to content

Commit 25ffef5

Browse files
committed
Fix rust build (growls loudly)
1 parent 62cab7e commit 25ffef5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

common/src/main/rust/rapier/src/joints.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ pub extern "system" fn Java_dev_ryanhcode_sable_physics_impl_rapier_Rapier3D_add
494494
handle_long
495495
}
496496

497-
#[no_mangle]
497+
#[unsafe(no_mangle)]
498498
pub extern "system" fn Java_dev_ryanhcode_sable_physics_impl_rapier_Rapier3D_addGenericConstraint<
499499
'local,
500500
>(
@@ -595,7 +595,7 @@ pub extern "system" fn Java_dev_ryanhcode_sable_physics_impl_rapier_Rapier3D_add
595595
handle_long
596596
}
597597

598-
#[no_mangle]
598+
#[unsafe(no_mangle)]
599599
pub extern "system" fn Java_dev_ryanhcode_sable_physics_impl_rapier_Rapier3D_setConstraintFrame<
600600
'local,
601601
>(
@@ -634,6 +634,6 @@ pub extern "system" fn Java_dev_ryanhcode_sable_physics_impl_rapier_Rapier3D_set
634634
joint.pos_b = position;
635635
joint.rotation_b = Some(rotation);
636636
}
637-
_ => panic!("Invalid constraint frame side: {}", side)
637+
_ => panic!("Invalid constraint frame side: {}", side),
638638
}
639639
}

0 commit comments

Comments
 (0)