From ef50115fcb4150106b91f73848386f11ad5e2863 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Mon, 20 Jul 2026 03:04:17 +0200 Subject: [PATCH] fix(fileio): satisfy decompression ABI lint Use the pointer-width bit count for the decompression callback projection assertion so the Rust archive remains clean under warnings-as-errors Clippy. The assertion keeps the same byte offset on supported targets. Test Plan: - ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo fmt --manifest-path rust/Cargo.toml --all -- --check - ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings --- rust/src/fileio_asyncio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/fileio_asyncio.rs b/rust/src/fileio_asyncio.rs index a5d45d34d..067182da0 100644 --- a/rust/src/fileio_asyncio.rs +++ b/rust/src/fileio_asyncio.rs @@ -631,7 +631,7 @@ const _: () = { ); assert!( std::mem::offset_of!(FIO_rust_decompress_file_projection_t, decompress) - == FIO_RUST_DECOMPRESS_FILE_CALLBACK_OFFSET + 8 * size_of::() + == FIO_RUST_DECOMPRESS_FILE_CALLBACK_OFFSET + usize::BITS as usize ); assert!( std::mem::offset_of!(FIO_rust_decompress_file_projection_t, clear_handler)