File tree Expand file tree Collapse file tree 13 files changed +18
-17
lines changed
Expand file tree Collapse file tree 13 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1919// Make sure fast / cheap clones on Arc are explicit:
2020// https://github.com/apache/datafusion/issues/11143
2121#![ cfg_attr( not( test) , deny( clippy:: clone_on_ref_ptr) ) ]
22+ #![ deny( clippy:: allow_attributes) ]
2223
2324//! [`ArrowFormat`]: Apache Arrow file format abstractions
2425
Original file line number Diff line number Diff line change 2424// https://github.com/apache/datafusion/issues/11143
2525#![ cfg_attr( not( test) , deny( clippy:: clone_on_ref_ptr) ) ]
2626#![ cfg_attr( test, allow( clippy:: needless_pass_by_value) ) ]
27+ #![ deny( clippy:: allow_attributes) ]
2728
2829//! An [Avro](https://avro.apache.org/) based [`FileSource`](datafusion_datasource::file::FileSource) implementation and related functionality.
2930
Original file line number Diff line number Diff line change 1919// Make sure fast / cheap clones on Arc are explicit:
2020// https://github.com/apache/datafusion/issues/11143
2121#![ cfg_attr( not( test) , deny( clippy:: clone_on_ref_ptr) ) ]
22+ #![ deny( clippy:: allow_attributes) ]
2223
2324pub mod file_format;
2425pub mod source;
Original file line number Diff line number Diff line change 1919// Make sure fast / cheap clones on Arc are explicit:
2020// https://github.com/apache/datafusion/issues/11143
2121#![ cfg_attr( not( test) , deny( clippy:: clone_on_ref_ptr) ) ]
22+ #![ deny( clippy:: allow_attributes) ]
2223
2324pub mod file_format;
2425pub mod source;
Original file line number Diff line number Diff line change 1919// https://github.com/apache/datafusion/issues/11143
2020#![ cfg_attr( not( test) , deny( clippy:: clone_on_ref_ptr) ) ]
2121#![ cfg_attr( test, allow( clippy:: needless_pass_by_value) ) ]
22+ #![ deny( clippy:: allow_attributes) ]
2223
2324pub mod access_plan;
2425pub mod file_format;
Original file line number Diff line number Diff line change @@ -584,7 +584,6 @@ where
584584}
585585
586586#[ derive( Default ) ]
587- #[ cfg_attr( not( feature = "parquet_encryption" ) , allow( dead_code) ) ]
588587struct EncryptionContext {
589588 #[ cfg( feature = "parquet_encryption" ) ]
590589 file_decryption_properties : Option < Arc < FileDecryptionProperties > > ,
@@ -626,7 +625,7 @@ impl EncryptionContext {
626625}
627626
628627#[ cfg( not( feature = "parquet_encryption" ) ) ]
629- #[ allow ( dead_code) ]
628+ #[ expect ( dead_code) ]
630629impl EncryptionContext {
631630 async fn get_file_decryption_properties (
632631 & self ,
@@ -646,7 +645,7 @@ impl ParquetOpener {
646645 }
647646
648647 #[ cfg( not( feature = "parquet_encryption" ) ) ]
649- #[ allow ( dead_code) ]
648+ #[ expect ( dead_code) ]
650649 fn get_encryption_context ( & self ) -> EncryptionContext {
651650 EncryptionContext :: default ( )
652651 }
Original file line number Diff line number Diff line change @@ -289,7 +289,8 @@ impl AsyncFileReader for CachedParquetFileReader {
289289
290290 fn get_metadata < ' a > (
291291 & ' a mut self ,
292- #[ allow( unused_variables) ] options : Option < & ' a ArrowReaderOptions > ,
292+ #[ cfg_attr( not( feature = "parquet_encryption" ) , expect( unused_variables) ) ]
293+ options : Option < & ' a ArrowReaderOptions > ,
293294 ) -> BoxFuture < ' a , parquet:: errors:: Result < Arc < ParquetMetaData > > > {
294295 let object_meta = self . partitioned_file . object_meta . clone ( ) ;
295296 let metadata_cache = Arc :: clone ( & self . metadata_cache ) ;
Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ mod tests {
803803 use datafusion_physical_expr:: expressions:: lit;
804804
805805 #[ test]
806- #[ allow ( deprecated) ]
806+ #[ expect ( deprecated) ]
807807 fn test_parquet_source_predicate_same_as_filter ( ) {
808808 let predicate = lit ( true ) ;
809809
Original file line number Diff line number Diff line change 1919//! file sources.
2020
2121use crate :: file_groups:: FileGroup ;
22- #[ allow( unused_imports) ]
23- use crate :: schema_adapter:: SchemaAdapterFactory ;
2422use crate :: {
2523 display:: FileGroupsDisplay , file:: FileSource ,
2624 file_compression_type:: FileCompressionType , file_stream:: FileStream ,
Original file line number Diff line number Diff line change @@ -354,7 +354,6 @@ impl StartableTime {
354354 }
355355}
356356
357- #[ allow( rustdoc:: broken_intra_doc_links) ]
358357/// Metrics for [`FileStream`]
359358///
360359/// Note that all of these metrics are in terms of wall clock time
You can’t perform that action at this time.
0 commit comments