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::())