style(rust): format MT teardown bridge

Apply the repository formatter to the new MT job-table teardown projection and its focused callback-order test. This keeps the accepted lifecycle seam behavior unchanged while restoring the crate's formatting contract.

Test Plan:

- cargo +nightly fmt --manifest-path rust/Cargo.toml --all

- git diff --cached --check
This commit is contained in:
2026-07-21 09:20:31 +02:00
parent 10b8b25865
commit 5f0e38684d
+3 -10
View File
@@ -4670,9 +4670,7 @@ pub struct ZSTDMT_RustFreeJobsTableProjection {
const _: () = {
assert!(size_of::<JobTableDestroySync>() == size_of::<usize>());
assert!(offset_of!(ZSTDMT_RustFreeJobsTableProjection, jobTable) == 0);
assert!(
offset_of!(ZSTDMT_RustFreeJobsTableProjection, nbJobs) == size_of::<usize>()
);
assert!(offset_of!(ZSTDMT_RustFreeJobsTableProjection, nbJobs) == size_of::<usize>());
assert!(
offset_of!(ZSTDMT_RustFreeJobsTableProjection, jobSize)
== if size_of::<usize>() == 8 { 16 } else { 8 }
@@ -4710,9 +4708,7 @@ unsafe fn free_job_table_with_sync(
unsafe { free_job_table_with_sync_projection(projection) };
}
unsafe fn free_job_table_with_sync_projection(
projection: ZSTDMT_RustFreeJobsTableProjection,
) {
unsafe fn free_job_table_with_sync_projection(projection: ZSTDMT_RustFreeJobsTableProjection) {
if projection.jobTable.is_null() {
return;
}
@@ -8956,10 +8952,7 @@ mod tests {
}
}
unsafe extern "C" fn free_jobs_table_test_free(
opaque: *mut c_void,
allocation: *mut c_void,
) {
unsafe extern "C" fn free_jobs_table_test_free(opaque: *mut c_void, allocation: *mut c_void) {
assert_eq!(allocation, opaque);
unsafe {
(*opaque.cast::<FreeJobsTableTestContext>())