From c402c20fb473d4cad58b5a81c437060464516047 Mon Sep 17 00:00:00 2001 From: Orson Peters Date: Tue, 20 Aug 2024 16:10:30 +0200 Subject: [PATCH] clippy --- crates/polars-core/src/frame/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/polars-core/src/frame/mod.rs b/crates/polars-core/src/frame/mod.rs index 359aebeeda03..42379797a6ba 100644 --- a/crates/polars-core/src/frame/mod.rs +++ b/crates/polars-core/src/frame/mod.rs @@ -74,8 +74,8 @@ where if items.len() <= 4 { for i in 0..items.len() - 1 { let name = get_name(&items[i]); - for j in i + 1..items.len() { - if name == get_name(&items[j]) { + for other in items.iter().skip(i + 1) { + if name == get_name(other) { polars_bail!(duplicate = name); } }