From 2db0fc0296b77ac8ce0faefdaeb0e79de6866f34 Mon Sep 17 00:00:00 2001 From: xxchan Date: Sun, 23 Feb 2025 22:02:07 +0800 Subject: [PATCH] chore: fix edition 2024 compile errors Signed-off-by: xxchan --- crates/iceberg/src/arrow/record_batch_transformer.rs | 6 +++--- crates/iceberg/src/scan.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/iceberg/src/arrow/record_batch_transformer.rs b/crates/iceberg/src/arrow/record_batch_transformer.rs index 9a4dd1784..38543509b 100644 --- a/crates/iceberg/src/arrow/record_batch_transformer.rs +++ b/crates/iceberg/src/arrow/record_batch_transformer.rs @@ -140,8 +140,8 @@ impl RecordBatchTransformer { Ok(match &self.batch_transform { Some(BatchTransform::PassThrough) => record_batch, Some(BatchTransform::Modify { - ref target_schema, - ref operations, + target_schema, + operations, }) => { let options = RecordBatchOptions::default() .with_match_field_names(false) @@ -294,7 +294,7 @@ impl RecordBatchTransformer { Error::new(ErrorKind::Unexpected, "Field not found in snapshot schema") )?; - let default_value = if let Some(ref iceberg_default_value) = + let default_value = if let Some(iceberg_default_value) = &iceberg_field.initial_default { let Literal::Primitive(primitive_literal) = iceberg_default_value else { diff --git a/crates/iceberg/src/scan.rs b/crates/iceberg/src/scan.rs index 30e45a074..11c1d8190 100644 --- a/crates/iceberg/src/scan.rs +++ b/crates/iceberg/src/scan.rs @@ -509,8 +509,8 @@ impl TableScan { if let Some(ref bound_predicates) = manifest_entry_context.bound_predicates { let BoundPredicates { - ref snapshot_bound_predicate, - ref partition_bound_predicate, + snapshot_bound_predicate, + partition_bound_predicate, } = bound_predicates.as_ref(); let expression_evaluator_cache = @@ -733,7 +733,7 @@ impl PlanContext { manifest_list: Arc, tx_data: Sender, delete_file_idx_and_tx: Option<(DeleteFileIndex, Sender)>, - ) -> Result>>> { + ) -> Result> + 'static>> { let manifest_files = manifest_list.entries().iter(); // TODO: Ideally we could ditch this intermediate Vec as we return an iterator.