Skip to content

Commit

Permalink
Linting suggestions addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-ionescu committed Dec 15, 2022
1 parent d3d38d0 commit 6f44aa6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/src/operations/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}?;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/writer/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl JsonWriter {
partition_columns: Option<Vec<String>>,
storage_options: Option<HashMap<String, String>>,
) -> Result<Self, DeltaTableError> {
let storage = DeltaTableBuilder::from_uri(&table_uri)
let storage = DeltaTableBuilder::from_uri(table_uri)
.with_storage_options(storage_options.unwrap_or_default())
.build_storage()?;

Expand Down
2 changes: 1 addition & 1 deletion rust/src/writer/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6f44aa6

Please sign in to comment.