This is an automated email from the ASF dual-hosted git repository.

Jefffrey pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new d520c52eb3 chore(parquet-variant): enable clippy allow_attributes" 
(#10603)
d520c52eb3 is described below

commit d520c52eb3c4add7430da2e723b77a34ce1b1386
Author: yongster <[email protected]>
AuthorDate: Mon Aug 10 07:13:13 2026 +0800

    chore(parquet-variant): enable clippy allow_attributes" (#10603)
    
    Part of #10458.
    
    Enable \`clippy::allow_attributes\` for \`parquet-variant\` and remove
    an unnecessary \`#[allow(unused)]\`.
    
    Tests:
    - \`cargo fmt --check\`
    - \`cargo test -p parquet-variant --offline\`
    - \`cargo clippy -p parquet-variant --offline -- -D warnings\`
    
    Co-authored-by: yang3.xie <[email protected]>
---
 parquet-variant/src/lib.rs   | 2 ++
 parquet-variant/src/utils.rs | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/parquet-variant/src/lib.rs b/parquet-variant/src/lib.rs
index a57b470979..1e1820b20f 100644
--- a/parquet-variant/src/lib.rs
+++ b/parquet-variant/src/lib.rs
@@ -31,6 +31,8 @@
 //!
 //! [Variant issue]: https://github.com/apache/arrow-rs/issues/6736
 
+#![warn(clippy::allow_attributes)]
+
 mod builder;
 mod decoder;
 mod path;
diff --git a/parquet-variant/src/utils.rs b/parquet-variant/src/utils.rs
index b2e2f654e0..838b2f0fe6 100644
--- a/parquet-variant/src/utils.rs
+++ b/parquet-variant/src/utils.rs
@@ -138,7 +138,6 @@ where
 }
 
 /// Verifies the expected size of type T, for a type that should only grow if 
absolutely necessary.
-#[allow(unused)]
 pub(crate) const fn expect_size_of<T>(expected: usize) {
     let size = std::mem::size_of::<T>();
     if size != expected {

Reply via email to