Skip to content

Commit fd0d2be

Browse files
committed
lint
1 parent 3c62043 commit fd0d2be

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

datafusion/catalog-listing/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use datafusion_catalog::Session;
2121
use datafusion_common::{config_err, internal_err};
2222
use datafusion_datasource::ListingTableUrl;
2323
use datafusion_datasource::file_compression_type::FileCompressionType;
24-
#[allow(deprecated)]
24+
#[expect(deprecated)]
2525
use datafusion_datasource::schema_adapter::SchemaAdapterFactory;
2626
use datafusion_physical_expr_adapter::PhysicalExprAdapterFactory;
2727
use std::str::FromStr;
@@ -308,7 +308,7 @@ impl ListingTableConfig {
308308
since = "52.0.0",
309309
note = "SchemaAdapterFactory has been removed. Use with_expr_adapter_factory and PhysicalExprAdapterFactory instead. See upgrading.md for more details."
310310
)]
311-
#[allow(deprecated)]
311+
#[expect(deprecated)]
312312
pub fn with_schema_adapter_factory(
313313
self,
314314
_schema_adapter_factory: Arc<dyn SchemaAdapterFactory>,

datafusion/catalog-listing/src/table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use datafusion_datasource::file::FileSource;
2929
use datafusion_datasource::file_groups::FileGroup;
3030
use datafusion_datasource::file_scan_config::{FileScanConfig, FileScanConfigBuilder};
3131
use datafusion_datasource::file_sink_config::FileSinkConfig;
32-
#[allow(deprecated)]
32+
#[expect(deprecated)]
3333
use datafusion_datasource::schema_adapter::SchemaAdapterFactory;
3434
use datafusion_datasource::{
3535
ListingTableUrl, PartitionedFile, TableSchema, compute_all_files_statistics,
@@ -298,7 +298,7 @@ impl ListingTable {
298298
since = "52.0.0",
299299
note = "SchemaAdapterFactory has been removed. Use ListingTableConfig::with_expr_adapter_factory and PhysicalExprAdapterFactory instead. See upgrading.md for more details."
300300
)]
301-
#[allow(deprecated)]
301+
#[expect(deprecated)]
302302
pub fn with_schema_adapter_factory(
303303
self,
304304
_schema_adapter_factory: Arc<dyn SchemaAdapterFactory>,
@@ -317,7 +317,7 @@ impl ListingTable {
317317
since = "52.0.0",
318318
note = "SchemaAdapterFactory has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details."
319319
)]
320-
#[allow(deprecated)]
320+
#[expect(deprecated)]
321321
pub fn schema_adapter_factory(&self) -> Option<Arc<dyn SchemaAdapterFactory>> {
322322
None
323323
}

datafusion/datasource/src/file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use std::sync::Arc;
2525
use crate::file_groups::FileGroupPartitioner;
2626
use crate::file_scan_config::FileScanConfig;
2727
use crate::file_stream::FileOpener;
28-
#[allow(deprecated)]
28+
#[expect(deprecated)]
2929
use crate::schema_adapter::SchemaAdapterFactory;
3030
use datafusion_common::config::ConfigOptions;
3131
use datafusion_common::{Result, not_impl_err};
@@ -202,7 +202,7 @@ pub trait FileSource: Send + Sync {
202202
since = "52.0.0",
203203
note = "SchemaAdapterFactory has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details."
204204
)]
205-
#[allow(deprecated)]
205+
#[expect(deprecated)]
206206
fn with_schema_adapter_factory(
207207
&self,
208208
_factory: Arc<dyn SchemaAdapterFactory>,
@@ -220,7 +220,7 @@ pub trait FileSource: Send + Sync {
220220
since = "52.0.0",
221221
note = "SchemaAdapterFactory has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details."
222222
)]
223-
#[allow(deprecated)]
223+
#[expect(deprecated)]
224224
fn schema_adapter_factory(&self) -> Option<Arc<dyn SchemaAdapterFactory>> {
225225
None
226226
}

0 commit comments

Comments
 (0)