diff --git a/crates/deltalake-core/src/operations/transaction/conflict_checker.rs b/crates/deltalake-core/src/operations/transaction/conflict_checker.rs index 3a0bf0526d..6cefe848b8 100644 --- a/crates/deltalake-core/src/operations/transaction/conflict_checker.rs +++ b/crates/deltalake-core/src/operations/transaction/conflict_checker.rs @@ -522,9 +522,8 @@ impl<'a> ConflictChecker<'a> { .winning_commit_summary .removed_files() .iter() - // TODO remove cloned - .cloned() - .find(|f| read_file_path.contains(&f.path)); + .find(|&f| read_file_path.contains(&f.path)) + .cloned(); if deleted_read_overlap.is_some() || (!self.winning_commit_summary.removed_files().is_empty() && self.txn_info.read_whole_table())