Apache DataFusion SQL Query Engine
Fix shadowing in test_code (#6361)
lokax301e31bec214
diff --git a/datafusion/execution/src/disk_manager.rs b/datafusion/execution/src/disk_manager.rsindex 60a8da44df..107c58fbe3 100644--- a/datafusion/execution/src/disk_manager.rs+++ b/datafusion/execution/src/disk_manager.rs@@ -233,10 +233,10 @@ mod tests {) {let dirs: Vec<&Path> = dirs.collect();- let found = dirs.iter().any(|file_path| {+ let found = dirs.iter().any(|dir_path| {file_path.ancestors()- .any(|candidate_path| *file_path == candidate_path)+ .any(|candidate_path| *dir_path == candidate_path)});assert!(found, "Can't find {file_path:?} in dirs: {dirs:?}");