Skip to content

Commit d644bb5

Browse files
committed
clippy rules
1 parent 764883d commit d644bb5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

crates/iceberg/src/transaction/update_statistics.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ impl UpdateStatisticsAction {
6868
}
6969
}
7070

71+
impl Default for UpdateStatisticsAction {
72+
fn default() -> Self {
73+
Self::new()
74+
}
75+
}
76+
7177
#[async_trait]
7278
impl TransactionAction for UpdateStatisticsAction {
7379
async fn commit(self: Arc<Self>, _table: &Table) -> Result<ActionCommit> {
@@ -82,7 +88,7 @@ impl TransactionAction for UpdateStatisticsAction {
8288
})
8389
} else {
8490
updates.push(TableUpdate::RemoveStatistics {
85-
snapshot_id: snapshot_id.clone(),
91+
snapshot_id: *snapshot_id,
8692
})
8793
}
8894
});

0 commit comments

Comments
 (0)