From 5f0e38684dbe6fbd3e30be3e98c1329e9dc25c4f Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 21 Jul 2026 09:20:31 +0200 Subject: [PATCH] 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 --- rust/src/zstdmt_compress.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/rust/src/zstdmt_compress.rs b/rust/src/zstdmt_compress.rs index 97d2b63cf..d74931495 100644 --- a/rust/src/zstdmt_compress.rs +++ b/rust/src/zstdmt_compress.rs @@ -4670,9 +4670,7 @@ pub struct ZSTDMT_RustFreeJobsTableProjection { const _: () = { assert!(size_of::() == size_of::()); assert!(offset_of!(ZSTDMT_RustFreeJobsTableProjection, jobTable) == 0); - assert!( - offset_of!(ZSTDMT_RustFreeJobsTableProjection, nbJobs) == size_of::() - ); + assert!(offset_of!(ZSTDMT_RustFreeJobsTableProjection, nbJobs) == size_of::()); assert!( offset_of!(ZSTDMT_RustFreeJobsTableProjection, jobSize) == if size_of::() == 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::())