From 3843fdcbbfdc25c91202b7b1b23106e373ced00d Mon Sep 17 00:00:00 2001 From: Robert Pack Date: Thu, 16 Nov 2023 20:33:49 +0100 Subject: [PATCH] chore: clippy --- .../src/operations/transaction/conflict_checker.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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())