diff --git a/parquet/src/format.rs b/parquet/src/format.rs index 4e1aa0b65b7c..9f4ddfe82855 100644 --- a/parquet/src/format.rs +++ b/parquet/src/format.rs @@ -5,7 +5,8 @@ #![allow(unused_imports)] #![allow(unused_extern_crates)] #![allow(clippy::too_many_arguments, clippy::type_complexity, clippy::vec_box, clippy::wrong_self_convention)] -#![cfg_attr(rustfmt, rustfmt_skip)] +// Fix unexpected `cfg` condition name: `rustfmt` https://github.com/apache/arrow-rs/issues/5725 +//#![cfg_attr(rustfmt, rustfmt_skip)] use std::cell::RefCell; use std::collections::{BTreeMap, BTreeSet}; diff --git a/parquet/src/lib.rs b/parquet/src/lib.rs index db5d72634389..1166703bb150 100644 --- a/parquet/src/lib.rs +++ b/parquet/src/lib.rs @@ -107,6 +107,8 @@ pub mod basic; /// Automatically generated code for reading parquet thrift definition. // see parquet/CONTRIBUTING.md for instructions on regenerating #[allow(clippy::derivable_impls, clippy::match_single_binding)] +// Don't try and format auto generated code +#[rustfmt::skip] pub mod format; #[macro_use]