diff --git a/rust/src/operations/write.rs b/rust/src/operations/write.rs index 823f1d466d..51f2374f71 100644 --- a/rust/src/operations/write.rs +++ b/rust/src/operations/write.rs @@ -200,7 +200,7 @@ impl std::future::IntoFuture for WriteBuilder { let object_store = if let Some(store) = this.object_store { Ok(store) } else { - DeltaTableBuilder::from_uri(&this.location.unwrap()) + DeltaTableBuilder::from_uri(this.location.unwrap()) .with_storage_options(this.storage_options.unwrap_or_default()) .build_storage() }?; diff --git a/rust/src/writer/json.rs b/rust/src/writer/json.rs index 7fa86d8515..c9fee9db77 100644 --- a/rust/src/writer/json.rs +++ b/rust/src/writer/json.rs @@ -183,7 +183,7 @@ impl JsonWriter { partition_columns: Option>, storage_options: Option>, ) -> Result { - let storage = DeltaTableBuilder::from_uri(&table_uri) + let storage = DeltaTableBuilder::from_uri(table_uri) .with_storage_options(storage_options.unwrap_or_default()) .build_storage()?; diff --git a/rust/src/writer/stats.rs b/rust/src/writer/stats.rs index e14b7dc333..2ec3c5f8d3 100644 --- a/rust/src/writer/stats.rs +++ b/rust/src/writer/stats.rs @@ -38,7 +38,7 @@ pub(crate) fn apply_null_counts( array .columns() - .into_iter() + .iter() .zip(fields) .for_each(|(column, field)| { let key = field.name().to_owned();