@@ -265,7 +265,7 @@ impl TableProvider for DataFusionTable {
265265// that differ in the host name, because DF's DefaultObjectStoreRegistry only takes
266266// hostname into account
267267fn fake_object_store_url ( table_location_url : & str ) -> Option < ObjectStoreUrl > {
268- let mut u = url:: Url :: parse ( & table_location_url) . ok ( ) ?;
268+ let mut u = url:: Url :: parse ( table_location_url) . ok ( ) ?;
269269 u. set_host ( Some ( & format ! (
270270 "{}{}" ,
271271 u. host_str( ) . unwrap_or( "-" ) ,
@@ -277,7 +277,7 @@ fn fake_object_store_url(table_location_url: &str) -> Option<ObjectStoreUrl> {
277277 u. set_path ( "" ) ;
278278 u. set_query ( None ) ;
279279 u. set_fragment ( None ) ;
280- ObjectStoreUrl :: parse ( u . to_string ( ) ) . ok ( )
280+ ObjectStoreUrl :: parse ( & u ) . ok ( )
281281}
282282
283283#[ allow( clippy:: too_many_arguments) ]
@@ -298,7 +298,7 @@ async fn table_scan(
298298
299299 // Create a unique URI for this particular object store
300300 let object_store_url = fake_object_store_url ( & table. metadata ( ) . location )
301- . unwrap_or_else ( || ObjectStoreUrl :: local_filesystem ( ) ) ;
301+ . unwrap_or_else ( ObjectStoreUrl :: local_filesystem) ;
302302 session
303303 . runtime_env ( )
304304 . register_object_store ( object_store_url. as_ref ( ) , table. object_store ( ) ) ;
@@ -378,7 +378,8 @@ async fn table_scan(
378378
379379 let manifests = table
380380 . manifests ( snapshot_range. 0 , snapshot_range. 1 )
381- . await . map_err ( DataFusionIcebergError :: from) ?;
381+ . await
382+ . map_err ( DataFusionIcebergError :: from) ?;
382383
383384 // If there is a filter expression on the partition column, the manifest files to read are pruned.
384385 let data_files: Vec < ManifestEntry > = if let Some ( predicate) = partition_predicates {
@@ -504,7 +505,7 @@ async fn table_scan(
504505 . with_pushdown_filters ( true )
505506 } else {
506507 ParquetSource :: default ( )
507- }
508+ } ,
508509 ) ;
509510
510511 // Create plan for every partition with delete files
@@ -596,11 +597,14 @@ async fn table_scan(
596597 let delete_file_source = Arc :: new (
597598 if let Some ( physical_predicate) = physical_predicate. clone ( ) {
598599 ParquetSource :: default ( )
599- . with_predicate ( Arc :: clone ( & delete_file_schema) , physical_predicate)
600+ . with_predicate (
601+ Arc :: clone ( & delete_file_schema) ,
602+ physical_predicate,
603+ )
600604 . with_pushdown_filters ( true )
601605 } else {
602606 ParquetSource :: default ( )
603- }
607+ } ,
604608 ) ;
605609
606610 let delete_file_scan_config = FileScanConfig :: new (
0 commit comments