Skip to content

Commit

Permalink
Minor clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler committed Nov 12, 2023
1 parent dd155a0 commit 1233586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/src/operations/optimize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ fn build_compaction_plan(

partition_files
.entry(part)
.or_insert_with(Vec::new)
.or_default()
.push(object_meta);
}

Expand Down
2 changes: 1 addition & 1 deletion rust/src/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ impl DeltaOperation {
pub fn name(&self) -> &str {
// operation names taken from https://learn.microsoft.com/en-us/azure/databricks/delta/history#--operation-metrics-keys
match &self {
DeltaOperation::Create { mode, .. } if matches!(mode, SaveMode::Overwrite) => {
DeltaOperation::Create { mode: SaveMode::Overwrite, .. } => {
"CREATE OR REPLACE TABLE"
}
DeltaOperation::Create { .. } => "CREATE TABLE",
Expand Down

0 comments on commit 1233586

Please sign in to comment.